-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overridden filename not stored in the database #84
Comments
see stavro/arc#85 and related issues for more |
Duplicate of stavro/arc#85 |
@pedep I don't think this issue is the same as #85, it is the same problem reported at issue #69 but you closed both... I'm having the same problem that @AppyCat reported. When I use the functions to retrieve the right filename is returned but at the database it saves the original filename from upload. The problem of doing that is if I change my filename or thumbnails strategy I lose compatibility with the old ones... Maybe use a JSON field to store all version names? |
@williamweckl I'm not sure storing JSON in the database is the correct approach, since that would pose problems with databases that does not support embedded schema. Do you think you could elaborate on what behavior you expect when changing the |
The below works to rename the file, but it does not rename what is stored in the database as the name of the file.
def filename(version, _) do
"#{UUID.uuid1()}"
end
The file name in the database remains the original file name, instead of the overridden version from the uuid above.
If the filename and what is stored in the db differ, the system is broken. Carrierwave updates the db with the new overridden file name. Is it possible to do the same with arc_ecto?
The text was updated successfully, but these errors were encountered: