How to access uploaded files with curl?

Using applications, configuring, problems
Post Reply
Message
Author
Taavi
Posts: 146
Joined: Fri 10 Mar 2006, 19:23
Location: Suomi, Finland

How to access uploaded files with curl?

#1 Post by Taavi »

I'm uploading pictures to my hosted webspace with curl script. I need to chmod the directory where I have the pictures uploaded but I can't get it done with curl. This is how get my files to the server:
#!/bin/bash
curl --ftp-create-dirs -T /mnt/home/zzzzz/zzzz.jpg -u passwd:user ftp://ftp.zzzzz.zzz/public_html/zzzzz/uploads/zzzzz/
I'm not sure did I understand the instructions in the man pages of curl. I tried with Q-option but I got this message: QUOT string not accepted: SITE CHMOD 777

Post Reply