Skip to content
WJunction - Webmaster Forum

[linux] Uploading to FileServe via curl

Status
Not open for further replies.
I have seen many users shifting to fileserve, so why not writing this small tutorial


PHP:
thisfile=${0//'./'/""}
if [ "$1" ]; then
  curl -T "$1" ftp.fileserve.com --user Username:password
else
  echo usage - $thisfile filename.ext
fi

1. save the above script as fileserve.sh (for example)

2. move it to directory /bin

3. In terminal, do (i'll need superuser or root privileges)
Code:
chmod +x /bin/fileserve.sh

4. Usage: fileserve.sh filename.ext


based on: http://www.wjunction.com/showthread.php?t=32893
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
625
Messages
18
Reactions
18
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom