• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Uploading PDF and IMAGE in same form

#1
[eluser]bennyhill[/eluser]
In a product form, I have fields where a user can upload an image as well as a pdf.

I figured out how to have both files upload successfully to the same directory, but I would like images to go to an images folder, and the pdfs to a pdf folder. How would I change the upload path for the pdf in the model function? Let me know if I should post my code.

#2
[eluser]bennyhill[/eluser]
Well this is the 10th time I ran to the forum too quick. I figured it out. I just needed to create a new config array ($phpConfig) and initialize it before I did the pdf upload $this->upload->initialize($phpConfig).


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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