I am developing my application with google app engine. I have a form which
uploads images and saves path in database. I am deploying app with google
app engine and upload of image doesn't works. Here is app.yaml
application: national-test
version: 1
runtime: php
api_version: 1
handlers:
- url: /favicon\.ico
static_files: favicon.ico
upload: favicon\.ico
- url: /(.+.(css|js|less|ico|png|jpg|woff|ttf|gif))$
static_files: \1
upload: .+.(css|js|less|ico|png|jpg|woff|ttf|gif)$
application_readable: true
- url: /.*
script: public/index.php
and here is my laravel code which localy works well
public function upload_image($id) {
$file = Input::file('image');
$destinationPath = 'uploads';
$extension = $file->getClientOriginalExtension();
$filename = time() . '' . str_random(6) . '.' . $extension;
$file->move($destinationPath, $filename);
$car = Car::find($id);
$car->Pic = $destinationPath.$filename;
$car->save();
}
Uploaded images are saved inside public>uploads
Is the problem with file read? Or I am missing something in app.yaml config?
--
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.