undefined folder created even when sub-folder field is left blank while image upload
Hi Admin,
I had assets_allow_subfolder_creation set to TRUE intially which gave the option to create a sub-directory during upload. But even if I remove the default undefined sub-folder value and set it to blank(via the visible input field).
Then too the image is uploaded with undefined/image_name, on checking further the value field of the sub_folder field is not getting cleared.
Thanks.
Comments
Again sorry for the delayed response!
So the file fuel\modules\fuel\config\fuel.php consist of the variable When the above variable is set to true and when I try to upload the image from backend, I get a folder created by-default named undefined. I am attaching the screenshot for confirmation.
by_default_upload_view.png is the image of the module with by default value as undefined. Here, I removed the undefined text from the sub-folder field and tried uploading the image PFA the screenshot for reference.
PFA the filename undefined_folder_created.png image for reference showing undefined folder created at the default upload destination.
The probable cause of the issue is the undefined not being removed from the value of the subfolder field even when the field is emptied manually, PFA screenshot for it as well.
Thanks.
https://github.com/daylightstudio/FUEL-CMS/commit/52f3fad1cfb24804c348b422eec97179bac50733