Using a PHP script to write files to mounted drive

What is the problem you are having with rclone?

I have a php website which can download files to my server. I want the site to be able to directly download to my mounted drive

Run the command 'rclone version' and share the full output of the command.

rclone v1.50.2

  • os/arch: linux/amd64
  • go version: go1.13.6

Which cloud storage system are you using? (eg Google Drive)

Onedrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)


The rclone config contents with secrets removed.

[gdrive]                                                                        
type = onedrive                                                                 
token = REDACTED
drive_id = REDACTED                                                   
drive_type = personal

A log from the command with the -vv flag

No log as PHP site doesn't see the mounted drive. 

So you basically paste a link in the site and it downloads it, on the site I've set the download folder to:

/home/user/cloud

That's where my OneDrive is mounted. PHP script just says drive didn't exist and it can't create it.

Any ideas? Cheers.

Version is super old so you need to update it.

--allow-other

As I'm guessing the PHP user is not the same as the user running the rclone mount.

Yeah, I assumed it was an issue with permissions and again assumed it was because of the different users involved.

I'll try that. Cheers.

I installed this from the repository as I struggled to get the script to work. I remembered it working some time ago. I'll update it again and then test it. Cheers for your help.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.