I am wondering how to fix this error in google app engine using flask. I understand that a file cannot exceed 32 MB. I am uploading videos and trying to store them in google cloud storage, I need to handle large videos. I have heard that using blobstore api may help but have not found much documentation on this and how I can implement it in this code.
<form id = "form2" action="{{ url_for('createPost') }}" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label for="files4">Video:</label>
<input type="file" id="files4" name='files4'>
</div>
</form>
def createPost():
if request.method == 'POST':
s = db.session()
try:
files4 = request.files.getlist('files4')
print(files4)
except Exception as e:
print("[Upload] Got exception: %s" % str(e))
return redirect(url_for('projects'))