I have a problem,.
When i upload a image with grocerycrud, only save the name of image in the database. What i can do to save the url concatenated with the name of image in the database? My site is sistema.zupa.delivery
⚠ 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. ⚠
Posted 08 October 2015 - 15:32 PM
I have a problem,.
When i upload a image with grocerycrud, only save the name of image in the database. What i can do to save the url concatenated with the name of image in the database? My site is sistema.zupa.delivery
Posted 12 October 2015 - 08:29 AM
Well Grocery crud is designed to manage the uploaded images to store only the name and there is a good reason to the same. The same is used for to be able to retrieve, change / alter / delete, etc by the library. If u append the url (which u surely can) .. u gonna defeat the functionality of GC library itself. Then it will be you who will have to manage the edit / view of the image manually. If thats fine ... go ahead - add the code.. if not.. i will recommend leave it as it is .. and append the path where u displaying the image in the code.
Posted 02 November 2015 - 06:43 AM
in controller you have to add the image path.you can call a rename image function.means you have to set the path. but while doing this the image path get doubled in grocery crud,for that problem you have to edit the grocerycrud.php.
and edit the grocerycrud.php ,change $file_url= to "value"