2π
β
I believe that in order to upload files that are larger than 1 MB, you need to use the Blobstore API to create a special URL that is used for the upload; it canβt be your regular <1 MB URL.
The controller code that generates the HTML page that contains the upload form would use upload_url = blobstore.create_upload_url('media/imageUploadBig')
and would then add upload_url
to your template values and render the template.
The template, in turn, would contain a FORM definition something like this:
<form id="hiddenUpForm" style="display:none;" action="{{ upload_url|safe }}" enctype="multipart/form-data" target="upTarget" method="POST">
This means that you either need to have two different forms β one for files that are less than 1 MB and one for files that are larger β or you can store all of your images in the Blobstore.
See the Blobstore docs for more information.
π€Adam Crossland
Source:stackexchange.com