[web2py] Re: question about google app engine blob property
This is testing on GAE Locally extra fields: auth.settings.extra_fields['auth_user']= [ Field('City'), Field('State'), Field('Country'), Field('Profile_Name'), Field('Avatar', 'upload')] When the user registers i get a unrecoverable error message after submission. I checked the db admin for GAE and it shows that all info was received including the blob. When i try form submission leaving the upload field blank it works fine. At first i thought that the image files were too big, but they are all under a 1mb. chawk
[web2py] Re: question about google app engine blob property
Massimo, This seems to be a GAE file size issue. i checked the error log and even though the file is under 1 mb it was saying that it was too large. Maybe the dimensions of the photo were too large as opposed to the actual disk space of the file? Either way it is not a problem with Web2py, just a limitation that i did not run into until testing on GAE. I used a smaller 50px by 50px photo which was about 15kb and it works fine. Per Google docs, it says that the upload file size limits is one gig. this is what the development console looks like: Profile_Name (string) amanda Avatar (string) auth_user.Avatar.a05d3cb080ce697d. 4a656c6c79666973682e6a7067.jpg Avatar_blob (Blob)binary password (string) eaa0c72ce4ea6949e14bfa4ad575cab6
[web2py] Re: question about google app engine blob property
chawk, the problem is that the upload field in web2py does not use blobstore on GAE, it uses a blob property on the model. very different, and limited to 1mb (or maybe something smaller based on your test). if you want the file size permitted by the blobstore, check out http://www.web2pyslices.com/slices/take_slice/63 and/or read up on the GAE files API (that might be easier than this but i have not used it for image upload yet) good luck! cfh
[web2py] Re: question about google app engine blob property
Can you shows us exactly which extra field causes the conflict? Massimo On Dec 17, 8:09 pm, chawk chrshawke...@gmail.com wrote: I am trying to build an app for google app engine. I currently use the auth_user for website registration. I added some extra fields to the registration. I was trying to add an additional auth_user field for avatar file upload. it appears that this will conflict with google blob property. Does anybody have a suggestion on how I could go about having a user upload a profile image through auth_user without causing problems with app engine db? chawk