Hi Mika, > We've been using external HTML form for submitting items into DSpace. > It utilises SWORD php library. > It works fine with smaller filer, say 1-2 megabytes, but when I try to > submit large items (say 10 Mb's) I get an error saying "HTTP error > code: 400". > > This should'nt be a PHP confguration issue, since I have set PHP > max_post size to 80 Mb's and other relevant parameters should be > raised appropriately. > Any ideas what could be causing this and how can I fix this?
Sorry for taking so long to respond. I've been trying this out tonight, and was managing to upload files of 100MB. In php.ini: Make sure that both post_max_size and upload_max_filesize are set appropriately. Also make sure the max_execution_time is set long enough. You can speed the deposit up slightly by turning off the dspace.cfg setting 'sword.keep-original-package' which means you'll only store the deposited files, not a copy of the original deposited package too. Also check your memory_limit in php.ini. I've just found an issue with the PHP library when trying to deposit a 500MB file where the package to deposit was being read into a variable before being POSTed. If the file was larger than the maximum amount of memory PHP is allowed to use (set in memory_limit) then PHP would halt. I've now corrected this and the package is streamed into the curl library directly rather than first being read into a variable. This will be in the next release of the PHP library (in the next 4 weeks or so) or I can send you a copy off list. The 500MB file now deposits OK. In terms of debugging your problem, look in your apache error log, and have DEBUG turned on for dspace.log. I hope this helps, Stuart Lewis IT Innovations Analyst and Developer Te Tumu Herenga The University of Auckland Library Auckland Mail Centre, Private Bag 92019, Auckland 1142, New Zealand Ph: 64 9 373-7599 x81928 http://www.library.auckland.ac.nz/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

