Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
upload::save() not working
  • From this code, here I am trying to save a group of images to my directory. The upload request is valid but when I check the folder, there are no files stored.

    Since this is a api request here is the result when I initiate it.

    the upload::getfiles() after the ::save() doesn't have any values.

    Here is my config for reference: http://pastebin.com/hrMFzm5x
  • Which Fuel version? Which Upload package version (in your composer.json)?
  • I only use what came from Fuel 1.7.2.
  • Can you switch to 1.8/develop and test that?
  • Is it available already? This site (FuelPHP) only list 1.7.2. Could you advise on how to debug this problem on 1.7.2, there might be something I missed?
  • It could be something that is fixed after the release of 1.7.2, which has been quite some time ago. Fixes are always applied in the current develop branch (now 1.8/develop), and it could be these issues have already been fixed.

    You create a local 1.8/dev install like so: http://fuelphp.com/dev-docs/installation/instructions.html#/from_github

    Once done copy your app folder over(and if needed make other changes required), and you can test your code with 1.8/dev of the framework.
  • I figured it out. I just disabled the max_length in the configure setting and it works. I was under the impression that it meant that randomized file names will be at 10 max length. Reading it know, it meant that it will only accept files with less then 10 characters.
  • Ah, yes. Good you've got it fixed.

    Strange that you didn't get an error message saying that though...

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion