Skip to content
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

Determine whether file is part of a directory upload #306

Open
ofekih opened this issue Aug 5, 2020 · 1 comment
Open

Determine whether file is part of a directory upload #306

ofekih opened this issue Aug 5, 2020 · 1 comment

Comments

@ofekih
Copy link

ofekih commented Aug 5, 2020

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants