[Dspace-general] exceeding the 512 MB maximum file size

Blanco, Jose blancoj at umich.edu
Thu Dec 6 16:23:37 EST 2007


Michael:

We configured our instance to be able to upload the max integer value
size:

2,147,483,647

But we changed the code to accept a long type for this configuration
parameter, in case we needed a higher upload amount.  Of course the
bigger the file the slower the upload.  You'll have to experiment with
your instance and see if the rate of upload is acceptable.  For us it
was.  I will also point out that you should make sure that the temp
upload dir where the file is to be uploaded to before going in the
assetstore is big enough, or things will hang.  That parameter is
upload.temp.dir and it lives in dspace.cfg.

Hope this helps!

-Jose

Below is the code I added/changed to be able to accept an upload size
bigger than integer, in case you are interested. 

-bash-3.00$ cvs diff ConfigurationManager.java
Index: ConfigurationManager.java
===================================================================
RCS file:
/l1/dspace/cvsroot/dspace/src/org/dspace/core/ConfigurationManager.java,
v
retrieving revision 1.4
diff -r1.4 ConfigurationManager.java
149a150,174
>     public static long getLongProperty(String property)
>     {
>         if (properties == null)
>         {
>             loadConfig(null);
>         }
> 
>         String stringValue = properties.getProperty(property);
>         long longValue = 0;
> 
>         if (stringValue != null)
>         {
>             try
>             {
>                 longValue = Long.parseLong(stringValue.trim());
>             }
>             catch (NumberFormatException e)
>             {
>                 warn("Warning: Number format error in property: " +
property);
>             }
>         }
> 
>         return longValue;
>     }
> 
-bash-3.00$ 


Index: FileUploadRequest.java
===================================================================
RCS file:
/l1/dspace/cvsroot/dspace/src/org/dspace/app/webui/util/FileUploadReques
t.java,v
retrieving revision 1.1.1.4
diff -r1.1.1.4 FileUploadRequest.java
99c99
<         int maxSize =
ConfigurationManager.getIntProperty("upload.max");
---
>         long maxSize =
ConfigurationManager.getLongProperty("upload.max");
221c221

-----Original Message-----
From: dspace-general-bounces at mit.edu
[mailto:dspace-general-bounces at mit.edu] On Behalf Of Boock, Michael
Sent: Thursday, December 06, 2007 3:21 PM
To: dspace
Subject: [Dspace-general] exceeding the 512 MB maximum file size

 
Hello,

Oregon State University is considering changing the DSpace software
settings to allow for submissions of file sizes larger than the default
512 MB maximum file size. We would like to submit several mpeg files
that are up to 2 GB.

Are there any other insitutions that have done so and if so, did you
experience any problems?

Thanks in advance for any assistance,
Michael

***********************************************************************
Michael Boock           
Head of Technical Services
Oregon State University Libraries
121 The Valley Library
Corvallis, OR  97331	         
541.737.9155
Fax: 541.737.8267
michael.boock at oregonstate.edu
***********************************************************************

_______________________________________________
Dspace-general mailing list
Dspace-general at mit.edu
http://mailman.mit.edu/mailman/listinfo/dspace-general




More information about the Dspace-general mailing list