⚠ 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

Strange issue width setFielUpload and solution



nunenthal
  • profile picture
  • Member

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') ;