Skip to content

About file naming #53

Answered by rahulhaque
stratboy asked this question in Q&A
Jan 24, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi @stratboy, welcome here.

I was just wandering: what's the reason why uploaded files have a changed encrypted name? What security (I guess) dangers does this solve? Why can't I leave the original file name?

It prevents exposing the filepond model id used internally so that another user can't access someone else's file by guessing the id.

How can I get the name used in temp?

You can get the actual name from getFile() and getModel() methods here. Dump the output you get from these two methods to have a better understanding.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@stratboy
Comment options

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