Hi, thanks for pointing this out. VikBooking will verify the WordPress upload directory at every execution, and if its directory does not exist under the defined upload dir, then it will create its own sub-directories. As you’ve noticed, the directory /media/vikbooking
was created with all the relevant sub-directories.
However, VikBooking does not perform any other action with the WordPress upload directory. As we said, this is only read through the WordPress native function wp_upload_dir()
and so we do not understand how no media files show up after using this core function.
Is there a particular reason why you would like to move the WordPress upload directory to a custom path? What happens if you do not overwrite it through the constant “UPLOADS”? In this case VikBooking should create its own directories onto /wp-content/uploads/vikbooking
, because /wp-content/uploads
is the WordPress default upload directory.
If reading the upload directory through the WordPress core function breaks your media files, in the sense that they do not show up, then we can probably suggest using the default directory, without defining a custom path, just to see if anything changes.
We believe to have understood that by disabling the VikBooking plugin your media files show up again, but VikBooking does nothing more than reading what’s the default upload directory through the above mentioned core function. If that’s the case, then it probably means a custom upload directory will lead to such issues if wp_upload_dir()
is called by any WordPress plugin.
Honestly, we’ve never heard of such issues with media files from any of our clients or VikBooking users, and since our plugin only uses WordPress core functions, we believe this is the expected behaviour when defining a custom upload directory and then requesting what value it is.