On Tue, May 20, 2014 at 5:14 AM, laureta xhaferaj <[email protected]>
 wrote:

> I have created a form to upload images. Localy everything works, I can
> upload images and save path in database. The problem is when update
> application in google app engine. It doesn't gets the image , because I
> try: $file = Input::file('image'); var_dump($file); and it displays NULL. I
> save images inside public>assets>uploads>images. May the problem be with
> app.yaml?
>


You shouldn't need to be saving those files yourself. Use App Engine's
createUploadUrl<https://developers.google.com/appengine/docs/php/refdocs/files/google.appengine.api.cloud_storage.CloudStorageTools#%5Cgoogle%5Cappengine%5Capi%5Ccloud_storage%5CCloudStorageTools>
to
handle the file upload and saving.

Also, you're attempting to write to the local file system; you can't do
that on App Engine. You need to be writing to Cloud Storage (the
createUploadUrl method will automatically handle that).


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.

Reply via email to