24 June 2009 at 4:25am
I have a model admin interface that manages a DataObject that has Images associated with it. I want to be able to upload images with the swfupload but I also don't need any information stored with the images. No caption, title or anything other than the uploaded date. From looking at the ImageGalleryManager.php file I can see that it is more complex than a simple ImageField. I need to know what things are required to make this work. I see SWFUploadConfig::addPostParam() and SWFUploadField() and handleswfupload(). Are these all that is needed and if so is there any documentation on them anywhere?
Describing how to build a simple resume upload form using SWFUploadField. To do what you're doing you will have to create your own handleswfupload() function in the controller. Totally possible, and quite easy (for me, anyway) to do. :-)
24 June 2009 at 7:37am
I tried something similar, but I used SWFUploadFileIFrameField in my model admin. I see the iFrame but it has a login screen telling me that I don't have permission to access that page. The member I am testing with is not an ADMIN but I still need this to work.
Does SWFUploadFileIFrameField still only work with one file at a time?
Since I am using ModelAdmin and loading images for a specific DataObject, not a page, where do I put the handleswfupload()? Do I make a controller for my ModelAdmin or the DataObject?