Alvaro Lopez Ortega skrev 2010-03-13 17:12:
> On 13/03/2010, at 16:56, Johan Linner wrote:
>
>> How does "Upload tracking" work?
>> How do I access progress when uploading a file from PHP?
>
> Cherokee's upload tracking module implements X-Progress-ID. There are quite a 
> few modules implementing this features, you could just use one of those. 
> There are also tutorials on the subject; the PHP code would be the same as 
> with the rest of the web server with X-Progress-ID support.
>
> Cheers!
>
> --
> Octality
> http://www.octality.com/
>

I am quite confused here. A lot of examples on APC and PHP 
uploadprogress on Google. But how do I use the X-Progress-ID 
implementation? I've tried something like this:

<?php
$uuid = md5(uniqid());
?>

<form action="upload_status.php" method="post" 
enctype="multipart/form-data" name="form1" id="form1">

<input type="hidden" name="X-Progress-ID" id="progress_key" value="<?php 
echo $uuid; ?>"/>

File:<br />
<input name="file" type="file" id="file" size="30"/><br />

<input name="Submit" type="submit" id="submit" value="Submit" />
</form>

But how do I actually access the upload-data (number of received bytes, 
status etc.)? In APC the apc_fetch() function is used, 
uploadprogress_get_info() in uploadprogress.so. But how do X-Progress-ID 
work in Cherokee?

/Johan

_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to