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

handleFileUploads and policy violation not working properly #147

Open
gregorycollins opened this issue Jul 8, 2012 · 0 comments
Open

handleFileUploads and policy violation not working properly #147

gregorycollins opened this issue Jul 8, 2012 · 0 comments

Comments

@gregorycollins
Copy link
Member

Karol Samborski reports:

I've got another problem. I'm using handleFileUploads to handle
uploading files and I'm using it like this:
handleFileUploads "upload_temp" defaultUploadPolicy (_ ->
allowWithMaximumSize 131072) handler

I just set maximum size (128 KB) and I get an error when I try to
upload file that is larger than the maximum allowed size. The error is
(btw. on stderr instead of error.log):
Internal error! UploadedFiles: opened new file with pre-existing open handle

So handleFileUploads instead of giving Left PolicyViolationException
(like the doc says), it throws an exception so the handler isn't
fired.

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

1 participant