Hello!
I have a problem when I try to run swfupload demos (both versions 2.0.2 and 2.1.0 beta) on my server. When I go to page with demos on http://demo.swfupload.org/simpledemo/index.php all is working fine though.
Server is running on freeBSD, client PC have linux on gentoo core. Using the FF3 with the latest version of flash-player (9).
I copyed 'demos' folder to the root directory of my site. So I run www.[mysitename].ru/demos/simpledemo/index.php
After trying to upload some files I get the 503 error. But in the apache logs I dont see any mentions about that file upload.php has executed!
Browsing in Opera, after selecting the files in swf-window, browser not responding (this is a true for http://demo.swfupload.org/simpledemo/index.php also..).
And all is working fine on client PC with windows and any browser, on my server! Upload.php executes on my server as it should.
Debug info
Debug info for FF3 (with error)
----- SWFUPLOAD SETTINGS ----
ID: undefined
upload_url: ../multiuploaddemo/upload.php
file_post_name: Filedata
post_params: {
PHPSESSID: f118c6d900bd70d7fa70e2624f8d40e4
}
file_types: *.*
file_types_description: All Files
file_size_limit: 102400
file_upload_limit: 10
file_queue_limit: 0
flash_url: ../swfupload/swfupload_f8.swf
flash_width: 1px
flash_height: 1px
flash_color: #FFFFFF
debug_enabled: true
swfupload_element_id: flashUI1
degraded_element_id: degradedUI1
user_swfUploadLoaded_handler: function () {
}
user_upload_complete_handler: function uploadComplete(fileObj) {
try {
if (this.getStats().files_queued === 0) {
document.getElementById(this.customSettings.cancelButtonId).disabled = true;
} else {
this.startUpload();
}
} catch (ex) {
this.debug(ex);
}
}
----- SWFUPLOAD SETTINGS END ----
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.0.2 FP8 2008-01-07 0001
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: ../multiuploaddemo/upload.php
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 10
SWF DEBUG: File Queue Limit: 10
SWF DEBUG: Post Params:
SWF DEBUG: PHPSESSID=f118c6d900bd70d7fa70e2624f8d40e4
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Flash called back and is ready.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Files Selected from Dialog. Processing file list
SWF DEBUG: Type: number Value:10
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished adding files
SWF DEBUG: StartUpload(): Starting Upload: First file in queue
SWF DEBUG: StartFile: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global URL Item: PHPSESSID=f118c6d900bd70d7fa70e2624f8d40e4
SWF DEBUG: startFile(): File Reference found. File accepted by startUpload event. Starting upload to ../multiuploaddemo/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 503.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: HTTP Error, File name: 052053050055052050.jpg, Message: 503
Debug info for IE, which I ran on the same PC on linux using crossower (wine) (with no errors)
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.0.2 FP8 2008-01-07 0001
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: ../multiuploaddemo/upload.php
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: File Types Description: All Files (*.*)
SWF DEBUG: File Size Limit: 104857600 bytes
SWF DEBUG: File Upload Limit: 10
SWF DEBUG: File Queue Limit: 10
SWF DEBUG: Post Params:
SWF DEBUG: PHPSESSID=9cc3108e6e0229764feae03b38208360
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
----- SWFUPLOAD SETTINGS ----
ID: undefined
upload_url: ../multiuploaddemo/upload.php
file_post_name: Filedata
post_params: {
PHPSESSID: 9cc3108e6e0229764feae03b38208360
}
file_types: *.*
file_types_description: All Files
file_size_limit: 102400
file_upload_limit: 10
file_queue_limit: 0
flash_url: ../swfupload/swfupload_f8.swf
flash_width: 1px
flash_height: 1px
flash_color: #FFFFFF
debug_enabled: true
swfupload_element_id: flashUI1
degraded_element_id: degradedUI1
user_swfUploadLoaded_handler: function () {
}
user_upload_complete_handler: function uploadComplete(fileObj) {
try {
/* I want the next upload to continue automatically so I'll call startUpload here */
if (this.getStats().files_queued === 0) {
document.getElementById(this.customSettings.cancelButtonId).disabled = true;
} else {
this.startUpload();
}
} catch (ex) { this.debug(ex); }
}
----- SWFUPLOAD SETTINGS END ----
Flash called back and is ready.
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Files Selected from Dialog. Processing file list
SWF DEBUG: Type: number Value:10
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished adding files
SWF DEBUG: StartUpload(): Starting Upload: First file in queue
SWF DEBUG: StartFile: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global URL Item: PHPSESSID=9cc3108e6e0229764feae03b38208360
SWF DEBUG: startFile(): File Reference found. File accepted by startUpload event. Starting upload to ../multiuploaddemo/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 0. Total: 1967
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 1967. Total: 1967
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Data: n/a
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
503
Are you specifically returning a 503 in your upload.php or are you really having a server overloaded error?
You may try changing the upload_url to a static URL rather than a relative URL if you don't think the upload.php is being hit.
Also, the latest release is v2.1.0 final (don't use the beta)
503
Changing upload_url to a static url dont helps.
503 Error I get as a notification from js library (appearing in the red block on the page). I guess the no any overloaded error in real.
My investigation also shows this:
503 error appears, when running scripts (demos folder) on the server with Nginx. My guess is that there is some conflict in apache+Nginx with flash player in linux. So the behavior depends on how server is configured..
On the server without Nginx there are no problems at all.
The bug is definitely exist. But I am not sure where. Maybe it is on the flash player 9 for linux, or contary in swf-object itself. Flash do not even touch upload.php - that is the problem.