Hi Vincent, > I wonder what kind of file is supported by SimpleFileIngester, looks as if it > is set to accept the plain files.
SimpleFileIngester will deposit any files. However it is slightly different than normal - rather than deposit packages which become new items, it allows you to deposit single files into existing items by using the /sword/deposit/{item-handle} URL. > I have tried the > http://scm.dspace.org/svn/repo/dspace/trunk/dspace-sword/example/example.zip > file, but it returns the same error. I also have tried the example files Neil > have offered, but without luck. It might be related to the headers you are sending, rather than the file itself. What headers are you setting? You might see them in dspace.log. > Besides, I have tried your easydeposit, it works quite well, no matter what > files is deposited. Do you add some improvements? EasyDeposit does nothing different, but it might be setting the headers differently. This bit of code is from EasyDeposit, and shows the headers that it sets: // Deposit the package require_once($this->config->item('easydeposit_librarylocation') . '/swordappclient.php'); $sac = new SWORDAPPClient(); $contenttype = "application/zip"; $format = "http://purl.org/net/sword-types/METSDSpaceSIP"; $response = $sac->deposit($_SESSION['depositurl'], $_SESSION['sword-username'], $_SESSION['sword-password'], $_SESSION['sword-obo'], $this->config->item('easydeposit_deposit_packages') . $this->userid . '.zip', $format, $contenttype); if (($response->sac_status >= 200) && ($response->sac_status < 300)) { $_SESSION['deposited-response'] = $response->sac_xml; $_SESSION['deposited-url'] = (string)$response->sac_id; } else { $error = 'Server returned status code: ' . $response->sac_status . "\n\n"; $error .= 'Server provided response: ' . $response->sac_xml; } If you're good with PHP, you could try depositing the example package using similar code. Thanks, Stuart Lewis Digital Development Manager Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: +64 (0)9 373 7599 x81928 ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ sword-app-tech mailing list sword-app-tech@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sword-app-tech