flowjs / flow.js

A JavaScript library providing multiple simultaneous, stable, fault-tolerant and resumable/restartable file uploads via the HTML5 File API.
Other
2.96k stars 346 forks source link

Determine whether file is part of a directory upload #306

Open ofekih opened 4 years ago

ofekih commented 4 years ago

Hey, I want to change the request query depending on whether it is a file upload or a folder upload. I made query a function, and currently I check if the file name is the same as the file relative path. If it is, then I assume it is a file upload, otherwise folder upload. I was wondering if there is a cleaner way of doing this.

Thanks in advance,

stephanieraymos commented 1 year ago

Hi @ofekih, I came here to ask how you're able to allow uploads for both directories and files. It seems to allow one of the other, but I can't get the option for both to be allowed. Thanks.