Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

[solved] Problem with SWFUpload module ..


Reply


6 Posts   4461 Views

Avatar
Jejel59

Community Member, 4 Posts

4 March 2010 at 9:10am

Edited: 12/03/2010 7:59am

Hi !
I have an error with SWFUpload when I upload a file, and I don't know how to fix it ..
I use Ubuntu, and every folder have 777 permission.
Here is the debug :

---SWFUpload Instance Info---
Version: 2.2.0 Alpha
Movie Name: SWFUpload_0
Settings:
   upload_url: http://localhost/Projets/AUTRE/silverstripe-v2.3.5/FileDataObjectManager_Controller/handleswfupload
   flash_url: http://localhost/Projets/AUTRE/silverstripe-v2.3.5/swfupload/javascript/swfupload.swf?swfuploadrnd=703207759
   use_query_string: false
   file_post_name: swfupload_file
   post_params: [object Object]
   file_types:
   file_types_description:
   file_size_limit: 2MB
   file_upload_limit: 20
   file_queue_limit: 20
   debug: true
   prevent_swf_caching: true
   button_placeholder_id: spanButtonPlaceholder
   button_image_url: http://localhost/Projets/AUTRE/silverstripe-v2.3.5/swfupload/images/upload_button.png
   button_width: 180
   button_height: 24
   button_text: <span class='button'>Upload files</span>
   button_text_style: .button { font-family: Helvetica, Arial, sans-serif; font-size: 12px; }
   button_text_top_padding: 6
   button_text_left_padding: 6
   button_action: -110
   button_disabled: false
   custom_settings: [object Object]
Event Handlers:
   swfupload_loaded_handler assigned: true
   file_dialog_start_handler assigned: true
   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 Alpha 2008-10-17
SWF DEBUG: movieName: SWFUpload_0
SWF DEBUG: Upload URL: http://localhost/Projets/AUTRE/silverstripe-v2.3.5/FileDataObjectManager_Controller/handleswfupload
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: File Types Description: ()
SWF DEBUG: File Size Limit: 2097152 bytes
SWF DEBUG: File Upload Limit: 20
SWF DEBUG: File Queue Limit: 20
SWF DEBUG: Post Params:
SWF DEBUG: controllerID=1
SWF DEBUG: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: dataObjectClassName=File
SWF DEBUG: parentIDName=ParentID
SWF DEBUG: dataObjectFieldName=
SWF DEBUG: hasDataObject=0
SWF DEBUG: fileClassName=File
SWF DEBUG: fileFieldName=Files
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: controllerID=1
SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: Global Post Item: dataObjectClassName=File
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: fileFieldName=Files
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://localhost/Projets/AUTRE/silverstripe-v2.3.5/FileDataObjectManager_Controller/handleswfupload 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: 888580. Total: 888580
SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.
SWF DEBUG: Event: uploadComplete : Upload cycle complete.
Error Code: -200, File name: 0912180332.JPG, File size: 888580, Message: 404

Thanks for your help !!

Avatar
UncleCheese

Forum Moderator, 4096 Posts

4 March 2010 at 9:45am

You're getting a 404:

HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 404.

Make sure your upload_url is good.

Avatar
Jejel59

Community Member, 4 Posts

4 March 2010 at 9:57am

Edited: 04/03/2010 9:57am

Yes it's good because I want to upload file with the File Manager .. :/ And with ImageGallery it's the same error ..

Avatar
UncleCheese

Forum Moderator, 4096 Posts

4 March 2010 at 10:21am

Il me paraît d'être une erreur qui va se réparer lorsque tu mis en ligne le code, en lieu de l'exécuter sur ton propre ordinateur... Les URLs pour "localhost" ont souvent des problèmes..

Avatar
Jejel59

Community Member, 4 Posts

8 March 2010 at 8:02am

Oh no you have unmasked me .. Yes I'm french, sorry for my bad english ..
Ok thanks for your help, I will test it soon on my server ! :)

Avatar
Jejel59

Community Member, 4 Posts

12 March 2010 at 7:58am

Edited: 12/03/2010 7:59am

It works fine on my web server ! :D
Thanks !