Jump to:

7939 Posts in 1472 Topics by 944 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » SWF with DataObjectManager uploaden

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: 566 Views
  • Bereusei
    Avatar
    Community Member
    94 Posts

    SWF with DataObjectManager uploaden Link to this post

    He guys,

    I´m working on an portfolio where I can present all my work.
    I´ve build an gallery like this: http://deadlytechnology.com/silverstripe/silverstripe-image-gallery/ using the DOM and the jQuery fancybox.
    With the fancybox is it possible to show SWFs.
    It seems that you can´t simply upload SWFs with DOM, but is it possible with some fixes?

    I like to show SWFs in the fancybox. Does anyone know a solution?

    Greetings,
    Sascha

  • UncleCheese
    Avatar
    4085 Posts

    Re: SWF with DataObjectManager uploaden Link to this post

    What do you mean you can't upload SWFs? What happens?

    --------------------
    SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: SWF with DataObjectManager uploaden Link to this post

    I can´t select swf-files if I click "upload files". Here is the debug-output:

    ---SWFUpload Instance Info---
    Version: 2.2.0 Alpha
    Movie Name: SWFUpload_0
    Settings:
       upload_url: http://www.myhomepage.eu/projekte/portfolio/FileDataObjectManager_Controller/handleswfupload
       flash_url: http://www.myhomepage.eu/projekte/portfolio/swfupload/javascript/swfupload.swf?swfuploadrnd=79041127
       use_query_string: false
       file_post_name: swfupload_file
       post_params: [object Object]
       file_types: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;
       file_types_description:
       file_size_limit: 128MB
       file_upload_limit: 40
       file_queue_limit: 40
       debug: true
       prevent_swf_caching: true
       button_placeholder_id: spanButtonPlaceholder
       button_image_url: http://www.myhomepage.eu/projekte/portfolio/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.myhomepage.eu/projekte/portfolio/FileDataObjectManager_Controller/handleswfupload
    SWF DEBUG: File Types String: *.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;
    SWF DEBUG: Parsed File Types: jpg,jpg,jpeg,jpeg,gif,gif,png,png,
    SWF DEBUG: File Types Description: (*.jpg;*.JPG;*.jpeg;*.JPEG;*.gif;*.GIF;*.png;*.PNG;)
    SWF DEBUG: File Size Limit: 134217728 bytes
    SWF DEBUG: File Upload Limit: 40
    SWF DEBUG: File Queue Limit: 40
    SWF DEBUG: Post Params:
    SWF DEBUG: dataObjectClassName=PortfolioResource
    SWF DEBUG: PHPSESSID=ca4873fe1c9997afce17fd362d06c3e0
    SWF DEBUG: OverrideUploadFolder=Uploads
    SWF DEBUG: __dynamic__UploadFolder=ImageDataObjectManager_Popup_UploadForm_UploadFolder
    SWF DEBUG: parentIDName=PortfolioPageID
    SWF DEBUG: fileClassName=Image
    SWF DEBUG: dataObjectFieldName=Images
    SWF DEBUG: controllerID=8
    SWF DEBUG: fileFieldName=Attachment
    SWF DEBUG: hasDataObject=1
    SWF DEBUG: ----- END SWF DEBUG OUTPUT ----
    SWF DEBUG:

  • Bereusei
    Avatar
    Community Member
    94 Posts

    Re: SWF with DataObjectManager uploaden Link to this post

    If anyone else have this problem, here the solution:

    in the class of the page, put this in the getCMSField-function:

    public function getCMSFields()
    {
       SWFUploadConfig::addFileType('swf');
    ....
    }

  • UncleCheese
    Avatar
    4085 Posts

    Re: SWF with DataObjectManager uploaden Link to this post

    SWFUpload was deprecated over a year ago. You should be using Uploadify.

    http://www.leftandmain.com/silverstripe-modules/2010/08/26/uploadify/

    ---------------
    Silverstripe tips, tutorials, screencasts, and more. http://www.leftandmain.com

    566 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.