You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Offline

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

Please create a new Ticket and we will get back to you as soon as we can.

#117041 Upload files to a mounted NFS folder

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by nadinearend on Wednesday, 15 January 2025 10:08 GMT

nadinearend

Hi,
if we try to upload images to our nfs folder we get the error message upload failed. After I spent some time to debug and researching i found some very old bug reports in PHP regarding the is_writable function, which returns a falsy false for a mounted/nfs folder although it is writable. So i disabled the is_writable check in JCE sources and the upload worked. Maybe you can replace this check with a solution which directly checks the permissions via fileperms() or somthing like that?
Or can you help me fix this without changing the JCE sources?

Many Thanks!

Ryan

So i disabled the is_writable check in JCE sources and the upload worked.

Which file did you disable the check in?

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

nadinearend

oh.. i checked the file again and it looks like joomla source files... /libraries/src/Filesystem/File.php
Joomla version 4.4.3 btw.

maybe this could work with the Server Filesystem plugin?

many thanks for your response!

Ryan

You could use a modified vesrion of the Server Filesystem plugin to override the Joomla upload function, skipping the file_exists check.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

nadinearend

Ok now I downloaded the server Filesystem plugin and skipped the is_writable function in the upload function. Works fine for now.
Thank you very much for helping me with this!