Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Problem when trying to upload file to AppEngine #9

Closed
rogcg opened this issue Apr 18, 2012 · 2 comments
Closed

Problem when trying to upload file to AppEngine #9

rogcg opened this issue Apr 18, 2012 · 2 comments

Comments

@rogcg
Copy link

rogcg commented Apr 18, 2012

I'm trying to make it work on AppEngine. I had success deploying and it works until I try to upload, an error message shows in server log:

ValueError: The App Engine storage backend only supports BlobstoreFile instances or File instances whose file attribute is a BlobstoreFile.

I believe that the error is because in models.py it uses django's model class, which is models.FileField, but AppEngine requires db.Blob().

Any idea to fix it? Thanks.

@sigurdga
Copy link
Owner

I'm sorry but I have never touched AppEngine, and I'm hoping you can get it to work. You are free to change the models.py to anything that would match the requirements of AppEngine. django-jquery-file-upload was only meant as an example to show how file upload in django with jquery could be done. You should take out the files you need and include them in your apps/projects with your needed modifications.

My suggestion would be to search for more generic solutions on getting file upload in Django to work on AppEngine. A quick search gave me a few articles/howtos, but I don't know AppEngine or your application good enough to recommend any of them.

Good luck!

@sigurdga
Copy link
Owner

No more action on this ticket … and the problem described is not directly related to the code, as it should work on other platforms.

If you found a solution, I would be glad if you could comment on them, so the next user with the same problem could find a solution.

I hope you got it working!

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

No branches or pull requests

2 participants