bulbulanwar
2 weeks ago

Unwanted upload images in public directory

Posted 2 weeks ago by bulbulanwar

My project is by Laravel6. I linked storage to upload images for my posts and categories. Images are uploaded correctly to the post and category sub-folders under the public/storage directory. But problem is, when ever I upload an image, a copy of the image stored in the public directory, no other sub-folder, just under the .htaccess file. I have no control over those images. When I delete a post or a category, related images in the post or category folder deleted as wanted, but images stored in the public folder remain. Now how I can stop this unwanted upload of images in the public folder?

Please sign in or create an account to participate in this conversation.