rejetto forum

Help uploading to HFS using curl

Guest · 5 · 9020

0 Members and 1 Guest are viewing this topic.

GiZ

  • Guest
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
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
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
Also, just to note, there's no username/password required on the folder at present.


Offline GiZ

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
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>/