tim3011's avatar

file upload not working on android

I am trying to upload pictures from a form which works fine on a desktop and on a mobile the files are not being uploaded

   $destinationPath = 'uploads'; // upload path
      $extension = Input::file('picture')->getClientOriginalExtension(); // getting image extension
      $fileName = rand(11111,99999).'.'.$extension; // renameing image
      Input::file('picture')->move($destinationPath, $fileName); // uploading file to given path

Done my testing on an android device and the upload feature won't work but works fine on Iphone

0 likes
2 replies
gbvacco's avatar

Just found the source of my problem! I was testing on my macbook after move the application to a linux server the upload works perfectly!

Please or to participate in this conversation.