Skip to content

Renaming file via url query params #210

Answered by ganigeorgiev
theMackabu asked this question in Q&A
Discussion options

You must be logged in to vote

No, at the moment users are not allowed to change the uploaded file name.

Using a unique random string for filenames have several benefits:

  • it eliminates the possibility of any filename text related vulnerabilities (like path traversal, xss injections when serving the file, etc.)
  • it allow us to not worry about duplicated names (uploading a new file will never collide with existing one)
  • it allow us to not worry about browser caches when "replacing" a file since the new one will always have a new name
  • it helps keeping your files "private" and accessible only if you know the url (in future there will be also auth-only/password protected files)

If you want to keep the original file name (or…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by theMackabu
Comment options

You must be logged in to vote
5 replies
@ganigeorgiev
Comment options

@ganigeorgiev
Comment options

@ByScripts
Comment options

@ganigeorgiev
Comment options

@ganigeorgiev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants