rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: GiZ on December 22, 2008, 11:20:50 AM

Title: Help uploading to HFS using curl
Post by: GiZ on December 22, 2008, 11: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?
Title: Re: Help uploading to HFS using curl
Post by: Pit on December 22, 2008, 11:26:07 AM
Is your Uploadfolder a real folder?
Title: Re: Help uploading to HFS using curl
Post by: GiZ on December 22, 2008, 11: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.
Title: Re: Help uploading to HFS using curl
Post by: GiZ on December 22, 2008, 11:30:38 AM
Also, just to note, there's no username/password required on the folder at present.
Title: Re: Help uploading to HFS using curl
Post by: GiZ on December 22, 2008, 02:03:14 PM
Nevermind, this thread can be locked.
Found the solution in another thread:
http://www.rejetto.com/forum/index.php?topic=4877.0 (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>/