⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Save full file path in database after upload file



kamel

kamel
  • profile picture
  • Member

Posted 13 March 2017 - 00:51 AM

Dears,

 

How to save full path of uploaded file in database,

I used set_field_upload('wrapped_image', 'upload/wrapped_image')

 

and after upload the image only save the name of file without path

 

I need to

1, Save the full path of uploaded file

2, Set the upload path

 

Is there any option like enable_full_path for uploaded file !!!

 

Thank you in advance :)


Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 14 March 2017 - 09:28 AM

Practically the purpose of the system was to save the images in specific folder .. so next time while it was to render - it will pickup the images from the set / defined path and continue with its listing / editing functionality. 

 

What you want can be achieved.. but then u will have to painfully manage the view / edit the listing / editing functionality.

 

The only benefit i see from using this if you plan to save the uploaded file into various different folder based on the conditions. then it may make sense to take the pain and manage the same. Else i will recommend go the way it is been set for.


kamel

kamel
  • profile picture
  • Member

Posted 04 April 2017 - 21:02 PM

Thank You  :)