RE: daisy Digest, Vol 57, Issue 10 - uploading large attachments

View: New views
2 Messages — Rating Filter:   Alert me  

Parent Message unknown RE: daisy Digest, Vol 57, Issue 10 - uploading large attachments

by steven.lungren :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Our web.xml includes the parameter setting to allow 1000MB file uploads, but we still get the same error message "...Only 97656 kbytes are allowed."

Here are the lines from web.xml:
    <init-param>
      <param-name>upload-max-size</param-name>
      <param-value>1024000</param-value>
    </init-param>

In myconfig.xml, we have this:

  <target path="/daisy/repository/httpconnector">
    <configuration>        
      <upload>
         <!-- threshold beyond which files are directly written to disk (in bytes) -->
         <threshold>50000</threshold>
         <!-- Maximum upload size (in bytes), -1 for no maximum -->
           <maxsize>-1</maxsize>
         <!-- Location for temporary upload files, default java.io.tmpdir -->
         <!-- tempdir></tempdir -->
       </upload>
    </configuration>
  </target>


Should I find java.io.tmpdir somewhere on our Daisy server?

Does the uploaded file go directly to the repository? Is there something in MySQL that would restrict file upload size? Is there something that needs to be reset, or cache cleared, in order for large attachments to be allowed?


Thanks,
Steve
------------------------------

Message: 2
Date: Mon, 15 Jun 2009 10:05:35 +0200
From: Karel Vervaeke <karel@...>
Subject: Re: [daisy] uploading large attachments
To: "Daisy: open source CMS - general mailinglist"
        <daisy@...>
Message-ID:
        <9a99f5510906150105n3b590a6bxeb1b55136dc57d4b@...>
Content-Type: text/plain; charset=windows-1252

Double-check web.xml.  It looks like you have set upload-max-size to
100 MB instead of 1000 MB.

Regards,
Karel

On Fri, Jun 12, 2009 at 8:30 PM, <steven.lungren@...> wrote:

> We're having trouble uploading large attachments to Daisy.
>
> After increasing file upload limits in web.xml (to 1000MB) and myconfig.xml
> (to -1 for unlimited), according to the documented instructions
> (http://daisycms.org/daisydocs-2_1/admin/217-cd.html), we cannot upload a
> 200+MB file using an Attachment document type.
>
> This message appears after unsuccessful upload, on the Attachment data  tab
> | Upload data field:
>
> "Upload size too large (283152 kbytes). Only 97656 kbytes are allowed."
>
> We're using Daisy 2.1 (with Tomcat) on a Microsoft XP server (and there is
> plenty of available space on the server).
>
> We'd appreciate any suggestions for overcoming this problem.
>
> Thanks,
> Steve
> _______________________________________________
> daisy community mailing list
> Professional Daisy support:
> http://outerthought.org/en/services/daisy/support.html
> mail to: daisy@...
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy

_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy

Re: RE: daisy Digest, Vol 57, Issue 10 - uploading large attachments

by Karel Vervaeke :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'll answer your individual questions and try to give some more
context inline, but I'm confident that the error message really comes
from cocoon (i.e. the wiki) - this comes from Cocoon's resource
bundles:
<message key="upload.rejected">Upload size too large ({0} kbytes).
Only {1} kbytes
are allowed.</message>

Your upload-max-size parameter looks good.  Please try changing the
value to something else and see if the error message changes
accordingly (don't forget to restart the wiki). This should make it
clear whether we are looking at the correct parameter or not.

Regards,
Karel

On Tue, Jun 16, 2009 at 6:42 PM, <steven.lungren@...> wrote:

> Our web.xml includes the parameter setting to allow 1000MB file uploads, but we still get the same error message "...Only 97656 kbytes are allowed."
>
> Here are the lines from web.xml:
>    <init-param>
>      <param-name>upload-max-size</param-name>
>      <param-value>1024000</param-value>
>    </init-param>
>
> In myconfig.xml, we have this:
>
>  <target path="/daisy/repository/httpconnector">
>    <configuration>
>      <upload>
>         <!-- threshold beyond which files are directly written to disk (in bytes) -->
>         <threshold>50000</threshold>
>         <!-- Maximum upload size (in bytes), -1 for no maximum -->
>           <maxsize>-1</maxsize>
>         <!-- Location for temporary upload files, default java.io.tmpdir -->
>         <!-- tempdir></tempdir -->
>       </upload>
>    </configuration>
>  </target>
>
>
> Should I find java.io.tmpdir somewhere on our Daisy server?

Normally it is set to ${wikidata.dir}/tmp in the startup script - it's
possible that the uploaded parts get removed immediately after the
request is handles, but I'm not sure.

>
> Does the uploaded file go directly to the repository? Is there something in MySQL that would restrict file upload size? Is there something that needs to be reset, or cache cleared, in order for large attachments to be allowed?
>

- The file is not sent to the repository until you save the document.
- The file is not stored in MySQL, but on the file system, so no mysql
limits apply.
- You should restart the wiki after changing the value in web.xml, but
other than that, no reset or cache clearing or such should be
necessary.

HTH,
Karel

>
> Thanks,
> Steve
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Jun 2009 10:05:35 +0200
> From: Karel Vervaeke <karel@...>
> Subject: Re: [daisy] uploading large attachments
> To: "Daisy: open source CMS - general mailinglist"
>        <daisy@...>
> Message-ID:
>        <9a99f5510906150105n3b590a6bxeb1b55136dc57d4b@...>
> Content-Type: text/plain; charset=windows-1252
>
> Double-check web.xml.  It looks like you have set upload-max-size to
> 100 MB instead of 1000 MB.
>
> Regards,
> Karel
>
> On Fri, Jun 12, 2009 at 8:30 PM, <steven.lungren@...> wrote:
>> We're having trouble uploading large attachments to Daisy.
>>
>> After increasing file upload limits in web.xml (to 1000MB) and myconfig.xml
>> (to -1 for unlimited), according to the documented instructions
>> (http://daisycms.org/daisydocs-2_1/admin/217-cd.html), we cannot upload a
>> 200+MB file using an Attachment document type.
>>
>> This message appears after unsuccessful upload, on the Attachment data  tab
>> | Upload data field:
>>
>> "Upload size too large (283152 kbytes). Only 97656 kbytes are allowed."
>>
>> We're using Daisy 2.1 (with Tomcat) on a Microsoft XP server (and there is
>> plenty of available space on the server).
>>
>> We'd appreciate any suggestions for overcoming this problem.
>>
>> Thanks,
>> Steve
>> _______________________________________________
>> daisy community mailing list
>> Professional Daisy support:
>> http://outerthought.org/en/services/daisy/support.html
>> mail to: daisy@...
>> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
> _______________________________________________
> daisy community mailing list
> Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
> mail to: daisy@...
> list information: http://lists.cocoondev.org/mailman/listinfo/daisy
>
_______________________________________________
daisy community mailing list
Professional Daisy support: http://outerthought.org/en/services/daisy/support.html
mail to: daisy@...
list information: http://lists.cocoondev.org/mailman/listinfo/daisy