Am I missing an obvious problem in the SWFUpload integration logs? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Am I missing an obvious problem in the SWFUpload integration logs? (/showthread.php?tid=25957) |
Am I missing an obvious problem in the SWFUpload integration logs? - El Forum - 01-01-2010 [eluser]chson[/eluser] Hey all, Anybody else get the "Complete" from the flash uploader button, but with no files actually uploaded? Note that I've already turned off $config['sess_match_useragent'] and added "application/octet-stream" to the image mimetypes. ---SWFUpload Instance Info--- Version: 2.2.0 2009-03-25 Movie Name: SWFUpload_0 Settings: upload_url: /CodeIgniter_1.7.2/client/upload flash_url: system/application/swfupload/swfupload.swf?preventswfcaching=1262409602691 use_query_string: false requeue_on_error: false http_success: assume_success_timeout: 0 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 debug: true prevent_swf_caching: true button_placeholder_id: spanButtonPlaceHolder button_placeholder: Not Set button_image_url: /CodeIgniter_1.7.2/images/TestImageNoText_65x29.png button_width: 65 button_height: 29 button_text: <span class="theFont">Upload</span> button_text_style: .theFont { font-size: 16; } button_text_top_padding: 3 button_text_left_padding: 12 button_action: -110 button_disabled: false 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.2.0 SWF DEBUG: movieName: SWFUpload_0 SWF DEBUG: Upload URL: /CodeIgniter_1.7.2/client/upload SWF DEBUG: File Types String: *.* SWF DEBUG: Parsed File Types: SWF DEBUG: HTTP Success: 0 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 /CodeIgniter_1.7.2/client/upload for File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0 SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 4615. Total: 4615 SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: error<html> SWF DEBUG: [snip index.php html ] SWF DEBUG: Event: uploadComplete : Upload cycle complete. My controller: Code: function upload() Am I missing an obvious problem in the SWFUpload integration logs? - El Forum - 01-02-2010 [eluser]chson[/eluser] Narrowed in on the problem but not sure how to resolve it. I added the following log in the controller function: Code: log_message('debug', '***: '.$this->input->post('Filedata')); And it turns out nothing is being POSTed by SWFUpload. Am I missing an obvious problem in the SWFUpload integration logs? - El Forum - 01-02-2010 [eluser]chson[/eluser] Used the wrong server variable in the last post. According to the logs, a file is being sent, but somehow it's getting lost during "$this->upload->do_upload('Filedata');". Code: log_message('debug', '***: '.$_FILES["Filedata"]["tmp_name"]); Log file: DEBUG - 2010-01-02 00:03:06 --> ***: /usr/local/tmp/php0IRFYk Am I missing an obvious problem in the SWFUpload integration logs? - El Forum - 01-02-2010 [eluser]chson[/eluser] Well I'll be damned stuff has been getting uploaded: ls -ltr ../../uploads/ | tail -5 -rw-r--r-- 1 4615 2010-01-01 23:42 c40481d89cdaa18e821a946c492cadf2.gif -rw-r--r-- 1 4615 2010-01-01 23:52 0af5a442c397da74b2fad69bf2429774.gif -rw-r--r-- 1 4615 2010-01-01 23:58 73075d353309ec1759c0ac81530e615a.gif -rw-r--r-- 1 4615 2010-01-02 00:01 89b362dcc828ca00bcd46ddf1815ecf5.gif -rw-r--r-- 1 4615 2010-01-02 00:03 935589c5d620e0158d1af69b3c4a76fb.gif Now I guess I have to figure out how to either map these randomly generated filenames to the originals filenames, or just rename them. |