chunkbasesize

Upload core product.
Post Reply
webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

chunkbasesize

Post by webrunner »

Hi there,

I'm not sure whether this is a bug or a misconfiguration on my side. I want to have the original filesize, but it does not seem to be transmitted. On each post request, i receive these values:

Code: Select all

    
    [process_id] => myprocessid
    [panda_id] => mypandaid
    [client_id] => 2
    [selectedfullfilename] => /Users/myuser/Movies/clips/myupload.mov
Here the relevant parts of the applet parameters:

Code: Select all

<param name="code" value="jfileupload.upload.client.MApplet.class">
<param name="codebase" value="http://static.xxx.com/">
<param name="archive" value="http://static.xxx.com/lib/jfileupload.jar,http://static.xxx.com/lib/httpimpl.jar,http://static.xxx.com/lib/chttpclient.jar,http://static.xxx.com/lib/clogging.jar">
<param name="name" value="fileupload">
<param name="type" value="application/x-java-applet;version=1.4">
<param name="scriptable" value="true">
<param name="url" value="http://xxx.com/dock.php">
<param name="paramfile" value="uploadfile">
<param name="param1" value="process_id">
<param name="value1" value="xxx">
<param name="param2" value="errorheader">
<param name="value2" value="xxxerror">
<param name="param3" value="selectedfullfilename">
<param name="value3" value="true">
<param name="param4" value="panda_id">
<param name="value4" value="xxx">
<param name="param5" value="client_id">
<param name="value5" value="2">
<param name="chunksize" value="10485760">
<param name="chunkmode" value="onflyrange">
<param name="mode" value="http">
<param name="checksum" value="md5">
<param name="preferences" value="true">
<param name="resume" value="true">
<param name="template" value="xxx-xxx-xxx-xxxx">

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: chunkbasesize

Post by support »

chunkbasesize is not passed for chunkmode = onflyrange.
We need size of each request or on redirect after upload ?

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: chunkbasesize

Post by webrunner »

I need the filesize on every post or at least with first chunk, because the upload gets registered in an external system then. Is that possible anyhow?

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: chunkbasesize

Post by webrunner »

Update: seems like is works, if the file must be chunked, means, that the file size is bigger than the chunk size. If the file size is smaller than the chunk size, the chunkbasesize is not transmitted. If that's correct, I think it's a bug, right?

Post Reply