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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Upload broken in 2.4?


Reply

55 Posts   12484 Views

Avatar
Baukez

27 May 2010 at 11:41pm Community Member, 4 Posts

The fix worked for me too! (version 2.4.0)

In the previous version (2.3) it would also stay in sync with files uploaded by FTP. This doesn't seem to work in 2.4.0 anymore.
Is anyone else facing this?

Avatar
Willr

27 May 2010 at 11:48pm Forum Moderator, 5511 Posts

@Baukez - You have to manually click the sync button now in the assets section (top left). This automatic functionality was removed for performance gains (parsing the filesystem on each load wasn't the quickest trick)

Avatar
Baukez

28 May 2010 at 12:19am (Last edited: 28 May 2010 12:20am), Community Member, 4 Posts

thanx Willr, that little button escaped my attention!
The name in my version states 'look for new files' (for the record ;-) ).

Avatar
ClearSky

4 June 2010 at 9:45am Community Member, 6 Posts

Thanks for the fix. It works for me in the 2.4.0 stable version.

Avatar
DsX

11 June 2010 at 8:52am Community Member, 178 Posts

and another:
Worked for me in the 2.4.0 stable version.

Avatar
yaizo

17 June 2010 at 10:48pm Community Member, 19 Posts

sorry! it doesent work for me! now i can uploade images but my backend-content (wysiwig) is now broken!!! i cant finde the content which is shown on the front-end nor cant edit or do anything. i am sad about this developement. i do not have any ideas what to do? do someone have the same problems?

any idea what to do? x_x - i am lost ... HELP!
strangely enough, the upload works perfectly local. what went wrong?
and yes i do have permisson!
thnks

Avatar
LinseyM

18 June 2010 at 12:57am Community Member, 99 Posts

hi there, that worked for me.

however, when i first tried to upload an image and it failed, it broke my wysiwyg editor too, so first of all i did a quick reinstall ok SS, then I did the fix on those two files and it worked fine.

Note: my files & line numbers were a little different, but it worked just the same.

Thanks,

L x

Avatar
dacar

5 July 2010 at 12:01pm Community Member, 168 Posts

hi, unfortunately it did not work for me. I am using 2.4.0 stable, too. SWF upload never stops processing in Firefox 3.6.6.
With IE 8.0.6001 it works fine. SecFilterEngine is set to Off and SecFilterScanPOST is also set to Off. open_basedir has no value in php.ini. silverstripe-cache is created and has write permissions. SWFUploadConfig::debug() is reporting the following:

---SWFUpload Instance Info---
Version: 2.2.0 Alpha
Movie Name: SWFUpload_0
Settings:
   upload_url: http://www.xxx.de/FileDataObjectManager_Controller/handleswfupload
   flash_url: http://www.xxx.de/swfupload/javascript/swfupload.swf?swfuploadrnd=911834442
   use_query_string: false
   file_post_name: swfupload_file
   post_params: [object Object]
   file_types:
   file_types_description:
   file_size_limit: 10MB
   file_upload_limit: 20
   file_queue_limit: 20
   debug: true
   prevent_swf_caching: true
   button_placeholder_id: spanButtonPlaceholder
   button_image_url: http://www.xxx.de/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://www.xxx.de/FileDataObjectManager_Controller/handleswfupload
SWF DEBUG: File Types String: *.*
SWF DEBUG: Parsed File Types:
SWF DEBUG: File Types Description: ()
SWF DEBUG: File Size Limit: 10485760 bytes
SWF DEBUG: File Upload Limit: 20
SWF DEBUG: File Queue Limit: 20
SWF DEBUG: Post Params:
SWF DEBUG: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: dataObjectFieldName=
SWF DEBUG: fileClassName=File
SWF DEBUG: parentIDName=ParentID
SWF DEBUG: hasDataObject=0
SWF DEBUG: fileFieldName=Files
SWF DEBUG: controllerID=1
SWF DEBUG: dataObjectClassName=File
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: OverrideUploadFolder=assets/Uploads/
SWF DEBUG: Global Post Item: dataObjectFieldName=
SWF DEBUG: Global Post Item: fileClassName=File
SWF DEBUG: Global Post Item: parentIDName=ParentID
SWF DEBUG: Global Post Item: hasDataObject=0
SWF DEBUG: Global Post Item: fileFieldName=Files
SWF DEBUG: Global Post Item: controllerID=1
SWF DEBUG: Global Post Item: dataObjectClassName=File
SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://www.xxx.de/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: 32768. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 65536. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 98304. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 131072. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 163840. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 196608. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 229376. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 262144. Total: 284352
SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_0_0. Bytes: 284352. Total: 284352

Can anybody help? Greetings, Carsten.