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

MAX_FILESIZE Check... #6

Open
Dexus opened this issue Jun 13, 2013 · 2 comments
Open

MAX_FILESIZE Check... #6

Dexus opened this issue Jun 13, 2013 · 2 comments

Comments

@Dexus
Copy link

Dexus commented Jun 13, 2013

I need a way to determine the file size and the file exceeds a certain size to the upload with the next chunk will be refused and returned to give an error. In addition, the upload will be deleted.

@pgaertig
Copy link
Owner

I plan to implement a call of backend before first chunk the same way as with final chunk but there will be state=start variable sent in addition to other known values like size, name, path. I have the same reason - restricting file size and file type. Backend could do anything and return status other than 2xx.

@Dexus
Copy link
Author

Dexus commented Jun 13, 2013

ok, thats sound good. but i think a check on upload is a must, because the "bad guys" can manipulate the js, so it need to check twice.

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

No branches or pull requests

2 participants