EPrints Technical Mailing List Archive

Message: #01667


< 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


Matthew.  Brilliant.  Thanks!  This could help a lot.

:-)

David.
________________________________________
From: eprints-tech-bounces@ecs.soton.ac.uk [eprints-tech-bounces@ecs.soton.ac.uk] on behalf of Matthew Kerwin [matthew.kerwin@qut.edu.au]
Sent: 06 March 2013 21:07
To: eprints-tech@ecs.soton.ac.uk
Subject: [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

*** Options: http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/