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

Matthew Kerwin matthew.kerwin at qut.edu.au
Wed Mar 6 21:07:16 GMT 2013


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 at qut.edu.au



More information about the Eprints-tech mailing list