Author Topic: Help uploading to HFS using curl  (Read 4072 times)

0 Members and 1 Guest are viewing this topic.

GiZ

  • Guest
Help uploading to HFS using curl
« on: December 22, 2008, 05:20:50 AM »
Hi there,

After some reading, I can transfer a file from linux command line, to my windows machine running HFS.
However, the transfer completes, and the file is nowhere to be found.

So, for example, the file is: Fedora-10-i386-DVD.iso

On the linux box:
Quote
curl -F fileupload1=@Fedora-10-i386-DVD.iso -F press="Upload files" <URL>

Then, at the same time, in the HFS window, I get:
Quote
12:15:30 PM <IP ADDRESS>:40448 Upload failed, Folder not found: Fedora-10-i386-DVD.iso
12:15:30 PM <IP ADDRESS>:40448 Uploading Fedora-10-i386-DVD.iso

I've tried appending "folder=Incoming" to the form action for curl, but it made no difference.

Anybody able to assist?

Offline Pit

  • Tireless poster
  • ****
  • Posts: 115
    • View Profile
    • EDV & Netzwerkservice in Berlin
Re: Help uploading to HFS using curl
« Reply #1 on: December 22, 2008, 05:26:07 AM »
Is your Uploadfolder a real folder?
You reach our Webserver every day between 9 AM to 10 PM under: http://phampel.dyndns.org or http://free4you.dyndns.org

GiZ

  • Guest
Re: Help uploading to HFS using curl
« Reply #2 on: December 22, 2008, 05:28:14 AM »
Yes, it's a real folder.

Tested, and I can upload from a browser on another machine.
Unfortunately, my only available option, it to upload via HTTP from the linux box to the windows box.

Offline GiZ

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: Help uploading to HFS using curl
« Reply #3 on: December 22, 2008, 05:30:38 AM »
Also, just to note, there's no username/password required on the folder at present.

Offline GiZ

  • Occasional poster
  • *
  • Posts: 2
    • View Profile
Re: Help uploading to HFS using curl
« Reply #4 on: December 22, 2008, 08:03:14 AM »
Nevermind, this thread can be locked.
Found the solution in another thread:
http://www.rejetto.com/forum/index.php?topic=4877.0

So, the curl command that works, for me, is:
Quote
curl -F fileupload1=@Fedora-10-i386-DVD.iso -F press="Upload files" http://<IP ADDRESS>/<FOLDER>/