[Flask] File Upload
Dmitry
d at ddipp.net
Tue Nov 15 01:48:36 EST 2016
Check the write permissions on the folder in which you save the file.
When downloading a file passes 100% and then there is an error, then
perhaps it is not connected with the limitation on size.
Or show code that allows to upload files to the server.
15.11.2016 11:33, Colin Haig пишет:
>
>
>
> To All
>
> I am trying to upload a file using flask – but when I upload a large
> file I get a server error.
>
> I have tried the following :
>
> app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
> When I reduce the above setting Flask reports a 413 error which is is
> supposed to do
>
>
> Updated apache server
>
> Have added LimitRequestBody 0 to my http.conf
>
> If I upload the file though my locahost flask server there are no issues.
>
>
> When I submit the file upload I can see a counter counting up to 100%
> but then it crashes with a server error – I have
> checked the apache logs but can not see any error associated with the
> upload.
>
> I have searched the web looking for answers but to no avail.
>
> Any help greatly appreciated.
>
> Regards
>
> Colin
>
>
>
>
>
>
> _______________________________________________
> Flask mailing list
> Flask at python.org
> https://mail.python.org/mailman/listinfo/flask
--
Dmitry Podkovyrkin
email: d at ddipp.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20161115/2fa34b25/attachment.html>
More information about the Flask
mailing list