Add "directory_prefix" or a similar convention for the "UploadHandler" to by able to upload folders while preserving file structure. #3550
alexandrutocar
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In current version of Remix (1.5.1)
parseMultipartFormData
transforms thepart.filename
to contain only thebasename
, meaning the directory relative path gets eventually lost by the time it hitsUploadHandler
. Could there be any way to preserver the path information or would it be a serious violation of RFC7578, mentioned in the source code ofparseMultipartFormData
?Context of my question is directory upload, which in my case must include the relative path information of files uploaded.
Beta Was this translation helpful? Give feedback.
All reactions