Jump to content


Strange issue width setFielUpload and solution

setFiledUpload()

  • Please log in to reply
No replies to this topic

#1 nunenthal

nunenthal

    Member

  • Members
  • PipPip
  • 24 posts
  • LocationFrance

Posted 02 March 2019 - 11:05 AM

When I use setFieldUpload, strangely, the first path must use $_SERVER['DOCUMENT_ROOT'], and the second path, which is the same no.
 
I guess it's because I'm not a very good connoisseur of PHP subtlety. But this can help others to not spend hours, surely.
 
crud->setFieldUpload('photo1', $_SERVER['DOCUMENT_ROOT']'/assets/images/accueil/photo1','/assets/images/accueil/accueil/photo1') ;
 

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users