[eluser]huuthanh3108[/eluser]
SWF upload debug
Code:
---SWFUpload Instance Info---
Version: 2.2.0 2009-03-25
Movie Name: SWFUpload_0
Settings:
upload_url: http://localhost/web/index.php/test/upload
flash_url: http://localhost/web/js/swfupload.swf?preventswfcaching=979406693155
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: http://localhost/web/images/TestImageNoText_65x29.png
button_width: 65
button_height: 29
button_text: <span class="theFont">Hello</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: http://localhost/web/index.php/test/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=4e346ac46a89a8f58c90aaa94df87ca4
SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
SWF DEBUG:
Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)
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=4e346ac46a89a8f58c90aaa94df87ca4
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://localhost/web/index.php/test/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: 32768. Total: 105230
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 65536. Total: 105230
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 98304. Total: 105230
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 105230. Total: 105230
SWF DEBUG: Event: uploadSuccess: File ID: SWFUpload_0_0 Response Received: true Data: Array
SWF DEBUG: (
SWF DEBUG: [file_name] => 3.jpg
SWF DEBUG: [file_type] => application/octet-stream
SWF DEBUG: [file_path] => D:/xampp/htdocs/web/uploads/
SWF DEBUG: [full_path] => D:/xampp/htdocs/web/uploads/3.jpg
SWF DEBUG: [raw_name] => 3
SWF DEBUG: [orig_name] =>
SWF DEBUG: [file_ext] => .jpg
SWF DEBUG: [file_size] => 102.76
SWF DEBUG: [is_image] =>
SWF DEBUG: [image_width] =>
SWF DEBUG: [image_height] =>
SWF DEBUG: [image_type] =>
SWF DEBUG: [image_size_str] =>
SWF DEBUG: )
SWF DEBUG: <p>The filetype you are attempting to upload is not allowed.</p>
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
controller
Code:
$config['upload_path'] = 'uploads/';
$config['allowed_types'] = 'gif|jpg|jpeg|png';
$config['max_size'] = '2048';
$config['remove_spaces'] = TRUE;
$config['encrypt_name'] = TRUE;
$this->load->library('upload', $config);
$this->upload->do_upload('Filedata');
$upload=$this->upload->data();
print_r($upload);
echo $this->upload->display_errors();
it is not work