cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: FTP-upload and file permissions

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 22 Mar 2008 16:07:42 -0700

On Sat, Mar 22, 2008 at 10:19:02PM +0100, Thomas Kühner wrote:
> Whenever I upload files using curl by FTP they end up with permissions 600
> on the server. This is not what I want. Any idea how to influence the file
> permissions when uploading using curl. Had used this command and found no
> option that fits my needs :
>
> curl -T '/Volumes/VOLUMENAME/matrix.tgz' 'ftp://USER:PASS@SERVER/
> matrix.tgz'

I don't think there's any standard FTP command to do that, but a lot of
servers support the 'SITE UMASK' or 'SITE CHMOD' commands. Try adding:

 -Q 'SITE UMASK 022'

or:

 -Q '-SITE CHMOD 644 matrix.tgz'

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-03-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET