juanparati/MooUpload — Issue #12: Uploading chunks causes Access Denided php error
Author: albanx
Created: 2011-10-15 22:51:35+00:00
State: open

Good, work you have done. I was trying this javascript upload method and I notice that some times files are not uploaded correctly, so with firebug I notice that when sending chunks in upload (html5), the server returns access denided error. (I test this on local host, firefox7,windows,wamp). It seems that when sending a chunks some times the request are so fast that the server hasn't still realease the file meanwhile the next chunks arrive for write. Here is what firebug returns:

( ! ) Warning: file_put_contents(C:\wamp\www\juanparati-MooUpload-f2fd419\Demo\tmp\\gtt6xlit_DELL_SYSTEM-SOFTWARE_A01_R260746.exe) [function.file-put-contents]: failed to open stream: Permission denied in C:\wamp\www\juanparati-MooUpload-f2fd419\Source\mooupload.php on line 142

Call Stack

#	Time	Memory	Function	Location

1	0.0003	677784	{main}( )	..\upload.php:0

2	0.0008	730672	Mooupload::upload( )	..\upload.php:7

3	0.0008	730704	Mooupload::HTML5_upload( )	..\mooupload.php:175

4	0.0011	836968	file_put_contents
( )	..\mooupload.php:142

{"id":"gtt6xlit","name":"DELL_SYSTEM-SOFTWARE_A01_R260746.exe","size":"102400","error":7,"finish":false,"upload_name":"gtt6xlit_DELL_SYSTEM-SOFTWARE_A01_R260746.exe"}

Any Idea how to avoid this error?