I've got an issue here: maybe someone can shed some light:
I placed SWFUpload's demo-files on my computer for some testing. (Mac OS 10.5.3, Apache 2, PHP 5.2)
1. Access the demos using localhost / 127.0.0.1 / computername.local works fine, every upload fails with an error #2038, for all browsers.
2. Accessing the same demos from Win XP using Parallels, accessing the server on the Mac partition of the same computer: works fine. (using computername.local/SWFUpload_demofiles in Win XP all browsers)
3. Accessing the same demos from another Mac on the same local network, using computername.local or localIP, every upload fails with an error #2038, for all browsers
4. Accessing the same demos from another PC (Vista) on the same local network, using localIP, every upload succeeds.
5. The same macs using the same browsers / settings from above, work fine when using SWFUpload on a remote UNIX server.
Conclusions:
- Scenario 2 & 4 indicate that the local server setup shouldn't be a problem, because the server accepts and saves the uploaded files fine, as long as they come from a Windows OS (even if that windows OS is running on the same computer as the Mac Server)
- Scenario 5 indicates that there's nothing wrong with the Mac OS / browser combination since everything works fine when I install the demos on a remote server.
- Still scenario 1 & 3 don't work.
Any insights?
thanks,
bart
--------------------------------
---SWFUpload Instance Info---
Version: 2.1.0
Movie Name: SWFUpload_0
Settings:
upload_url: ../simpledemo/upload.php
use_query_string: false
file_post_name: Filedata
post_params: [object Object]
file_types: *.*
file_types_description: All Files
file_size_limit: 100 MB
file_upload_limit: 100
file_queue_limit: 0
flash_url: ../swfupload/swfupload_f9.swf
flash_color: #FFFFFF
debug: true
custom_settings: [object Object]
Event Handlers:
swfupload_loaded_handler assigned: false
file_dialog_start_handler assigned: false
file_queued_handler assigned: true
file_queue_error_handler assigned: true
upload_start_handler assigned: true
upload_progress_handler assigned: true
upload_error_handler assigned: true
upload_success_handler assigned: true
upload_complete_handler assigned: true
debug_handler assigned: true
SWF DEBUG: SWFUpload Init Complete
SWF DEBUG:
SWF DEBUG: ----- SWF DEBUG OUTPUT ----
SWF DEBUG: Build Number: SWFUPLOAD 2.1.0 FP9 2008-05-12
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: ../simpledemo/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: 100
SWF DEBUG: File Queue Limit: 100
SWF DEBUG: Post Params:
SWF DEBUG: PHPSESSID=
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.*
SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list...
SWF DEBUG: Event: fileQueued : File ID: SWFUpload_0_0
SWF DEBUG: Event: fileDialogComplete : Finished processing selected files. Files selected: 1. Files Queued: 1
SWF DEBUG: StartUpload: First file in queue
SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0
SWF DEBUG: Global Post Item: PHPSESSID=
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to ../simpledemo/upload.php for File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0
SWF DEBUG: Event: uploadError : IO Error : File ID: SWFUpload_0_0. IO Error: Error #2038
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: IO Error, File name: IMG_0012.JPG, Message: Error #2038
solution
48 hours of madness to find the solution: the spaces in the directory names (as the files are provided by default) caused the above behaviour. After limiting all characters in all folders and files to the usual a-zA-Z0-9-_ everything was fine again.
Which
Which file names? Are you talking about spaces in the files on the client being uploaded or spaces in the file/folder names on the webserver?
same problem and solution
I was able to upload my images from a Vista machine in FF2 but wasn't able to upload from Mac OS X (Leopard) in FF2. Was receiving #2038 error code that doesn't help at all. Then I found this post and all my problems went away. The folders on the remote machine (server, intranet etc...) cannot have spaces in them. The un-modified directories created from the .zip files are:
SWFUpload Samples v2.1.0
SWFUpload v2.1.0 Core
Once I removed the spaces from these folders the upload worked like a charm. Thanks a million crookedspoon. Although I won't get back the wasted hours I've spent trying to figure this out I can now get on with the rest of my application!