Skip to content
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

File renaming #2

Closed
fhxfhx opened this issue Aug 22, 2010 · 3 comments
Closed

File renaming #2

fhxfhx opened this issue Aug 22, 2010 · 3 comments
Labels

Comments

@fhxfhx
Copy link

fhxfhx commented Aug 22, 2010

  1. rename files with convention : abc.jpg -> 1_1.jpg / resizes 1_2.jpg, 1_3.jpg ... so they are sorted beneath each other and files are not overwritten by same filenames of other uploads
@josegonzalez
Copy link
Member

You can partially perform this by setting the style name to a number and setting the 'prefixStyle' to false.

@fhxfhx
Copy link
Author

fhxfhx commented Aug 24, 2010

does this also rename the original file name to the id number of the upload ?

@josegonzalez
Copy link
Member

No, it does not rename the original filename based on any of the model data. It only renames the thumbnails, and only adding the prefix/suffix in that case.

josegonzalez added a commit that referenced this issue Jul 29, 2014
…y only handles the original filename

This can be used to rename the file appropriately on upload. For instance, if a file has accents, it may be useful to strip those out. You can also use this to hack around duplicative file names.

Refs #2
Refs #33
Refs #118
Refs #143
Refs #191
Closes #219
Closes #89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants