• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
File/Image upload using subdirectories

I have project where I have created a sub-directory for the "backoffice" called backoffice in both the controller and view folders.

I have a view with a form for uploading an image, and a controller for processing the upload, both in the respective backoffice folders and I keep getting the “You did not select a file to upload” error.

I have checked and double checked the code and made sure I put the field_name in the do_upload() function, the path is correct and writable, etc.

I then took the files in question and moved them to the top level of Controllers and Views and the upload process works fine (no changes in code except for the action url of the form)

Any ideas why it won't work when placed in a sub-directory and/or ideas of how to get it to work from the sub-directory



Has to be either a path or permissions issue. Not much else we can say without knowing your whole setup.

More help would be possible after seeing your controller and view
code. All in all it sounds strange that the selected file is only
seen when your controller and view file is saved in an other folder.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.