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

SWF with DataObjectManager uploaden


Reply


5 Posts   705 Views

Avatar
Bereusei

Community Member, 94 Posts

3 July 2011 at 12:26am

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

Avatar
UncleCheese

Forum Moderator, 4096 Posts

8 July 2011 at 9:13am

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

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

Avatar
Bereusei

Community Member, 94 Posts

9 July 2011 at 5:16am

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:

Avatar
Bereusei

Community Member, 94 Posts

10 July 2011 at 5:15am

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');
....
}

Avatar
UncleCheese

Forum Moderator, 4096 Posts

11 July 2011 at 6:13am

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