Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Can't upload files via SWFUpload

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 1445 Views
  • sonet
    Avatar
    Community Member
    33 Posts

    Can't upload files via SWFUpload Link to this post

    I can't upload files from my mac or any linux box. It's really odd that it works in IE8 on WinXP with the same Flash player version. I reinstalled flash with debugger, without, went back to version 9... cleared cache on the server, reset the browsers.

    The SWF debug gets stuck at the upload event:

    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: hasDataObject=0
    SWF DEBUG: Global Post Item: PHPSESSID=kt05ldrefsd1fn7lt4ofe897t9i2
    SWF DEBUG: Global Post Item: dataObjectFieldName=
    SWF DEBUG: Global Post Item: parentIDName=ParentID
    SWF DEBUG: Global Post Item: fileClassName=File
    SWF DEBUG: Global Post Item: OverrideUploadFolder=assets/docs/
    SWF DEBUG: Global Post Item: controllerID=17
    SWF DEBUG: Global Post Item: fileFieldName=Files
    SWF DEBUG: Global Post Item: dataObjectClassName=File
    SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to http://localhost/FileDataObjectManager_Controller/handleswfupload for File ID: SWFUpload_0_0
    SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_0_0

    I'm using 2.4.1, the assets folder is set to 777. Everything works fine in IE8/WinXP.

    Any ideas what might be the problem or how to troubleshoot this issue? I'd appreciate any help.

  • brice
    Avatar
    Community Member
    51 Posts

    Re: Can't upload files via SWFUpload Link to this post

    Perhaps this is related to a quirky SWFUpload bug (from the SWFUpload project itself) where filenames w/ spaces get partially uploaded?

    http://code.google.com/p/swfupload/issues/detail?id=206&colspec=ID%20Type%20Status%20Summary%20FixReleasedIn%20FixTargetedFor%20Modified

    from the debug, I couldn't see the filename

  • sonet
    Avatar
    Community Member
    33 Posts

    Re: Can't upload files via SWFUpload Link to this post

    This is discussed in detail here: http://silverstripe.org/dataobjectmanager-module-forum/show/287478?start=0

    It started working for me after I upgraded to the most recent svn versions and reset my browsers, which deleted all cookies (as much as it hurts - wasted quite a few hours on it).

    1445 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.