-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Upload dir #853
Upload dir #853
Conversation
Has to be used with filename option (otherwise hexoid creates a flat random name) |
Well I feel a little silly for having recently spent a bunch of time implementing something similar outside Formidable. |
Thanks for the input, some tests are failing but they failed before it has nothing to do with this change. There is an issue open about failing tests I think which I would try to handle after this PR. |
I am not sure about everything being sync fs operations. From TS point of view, it does not change much... Finally shouldn't there be some FS error handling? Does the form processing need to stop, because of an error in saving a file? |
Closing in favor of #855 please have a look there |
Allows to upload directories and keep their structure with on the client side
Add a new options createDirsFromUploads that will create necessary directories from filename before uploading process.
For example if "a/b.txt" is sent in from the browser
then uploads folder will be uploads/a/b.txt