Thanks Max! How do we deal with the situation when different posts have different images, but with the same name? For example, if user uploads post1/1.jpg and post2/1.jpg from their hard drive, won’t both posts show the same 1.jpg from post1 folder?
@rushko752 жыл бұрын
Thank you
@PrzemysawFieluba Жыл бұрын
Nice video. I will add two thinks now name of image can overlap each other. $uploader->setAllowRenameFiles(true); means you have random generated name. And that name should be saved in to db as it orginal name. And on view add as alt mayby ?
@MaxPronko Жыл бұрын
I prefer the original file name to be stored in the db table, though. Thanks for the comment.