swfupload |
[eluser]tirso[/eluser]
hi to all I hope someone could help me to solve this. I am using swfupload for multiple uploading. I searched first how to integrate swfupload in ci. My problem is during the uploading there is error message. thanks in advance my directory structure css/default.css swfupload/swfupload.js /swfupload.swf /swfuploadbutton.swf js_swfupload/fileprogress.js /swfupload.queue.js /handlers.js I already change application/config/mimes.php Code: 'jpeg' => array('image/jpeg', 'image/pjpeg', 'application/octet-stream'), my view Code: <head> my controller Code: class Fileupload extends Controller { here is the debug result (this debug result is only the lower portion since I have no characters remaining left. SWF DEBUG: StartUpload: First file in queue SWF DEBUG: Event: uploadStart : File ID: SWFUpload_0_0 SWF DEBUG: Global Post Item: PHPSESSID=2f1b3f61a50dbf0ae24333f8d3133103 SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://localhost/shinheung_codeigniter/i...oad/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: 6843. Total: 6843 SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404. SWF DEBUG: Event: uploadComplete : Upload cycle complete. Error Code: HTTP Error, File name: 77.jpg, Message: 404
[eluser]tomcode[/eluser]
It might hang due to the session / login. Comment out the session / login lines and try then as a first step.
[eluser]tirso[/eluser]
hi tomcode, I already commented this line but still doesn't work. Still the same error with the debug output. Thanks for your replied. Code: if ($this->session->userdata('logged_in') != true) show_404(); //cancel if the user is not logged in
[eluser]Unknown[/eluser]
tirso, Have you tried sending other debug messages other than the show_404()? This is just to test that it is actually getting the correct url. The only line that have the show_404() is this one: Code: if ( ! $this->upload->do_upload('Filedata')){ so you might want to concentrate on debugging your code within this section. Btw, thanks for sharing your code, I got my problem with swf session thing working. Mine is a little bit different from yours but you gave me an idea with this line: Code: //you should have swfuploader POST your session id (youll see in the view) Thanks and happy coding. |
Welcome Guest, Not a member yet? Register Sign In |