EPrints Technical Mailing List Archive

See the EPrints wiki for instructions on how to join this mailing list and related information.

Message: #01666


< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First

[EP-tech] Re: Adding files to an eprint using cURL


David,

> but the contents were @dandelion2.JPG, which is the filename, not the data

The contents are probably actually " @dandelion2.JPG", because that is what you passed as the parameter to cURL:

> --data-binary " @dandelion2.JPG"

The @filename parameter trick only works if the _first_ character of the binary data is an @ symbol, but you've put it as the second (the first being a space).

That should fix up a small part of your issue, and get it working on the downgraded package, at least.

Cheers
-- 
Matthew Kerwin  |  QUT Library eServices  |  ph 3138 3910  |  matthew.kerwin@qut.edu.au