I love developing usable and rich web applications using the latest techniques available.

SWFUploadComponent for CakePHP

March 26, 2007

If you’ve followed the comments on my posts about SWFUpload you’ve probably noticed that James Revilini was working on a SWFUpload component for CakePHP to make our lifes a little easier.
2 days ago James finished his component. And above all he also made some great documentation on the Bakery, so what are you waiting for? start implementing it!

Bookmark and Share
Filed under: Cakephp,Webdevelopment

7 Comments »

  1. Hey! Thanks for the plug. The article I posted has one flaw which is that it has view and js code for the 0.8.6 release of SWFUpload, and they have changed enough things to where that section of the article can be tossed. I do have an update to the article that I’m waiting to post, however a bug in the Bakery is preventing me from doing so at the moment.

    So, do read the article and implement the SwfUploadComponent, but follow the SWFUpload site’s docs on setting up the front end for it until my article can be updated. Peace!

    27/03/2007 @ 1:46 amjames revillini
  2. Allright, thanks for noticing

    27/03/2007 @ 11:26 amEelco Wiersma
  3. Me again. I know you’re working on integrating SWFUpload with one of your projects, so I thought I’d also let you know about a kit I’m putting together which gives SWFUpload a decent UI.

    You’ve been using SWFUpload long enough to remember when they used to provide the css and stuff with the download package, so you were probably as surprised as I was that when 1.0.2 came out, you had to basically build the UI from scratch. The kit takes some of the guess-work out of building.

    I’d like to put together a collection of skins for it, so if you have anything to contribute as a result of your customizations, please do.

    Regarding the article at the Bakery, they fixed that glitch so it’s been revamped for SWFUpload 1.0.2. Huzzah!

    29/03/2007 @ 7:37 amjames revillini
  4. Thanks again, you keep suprising me :P.
    We’ll probably begin skinning SWFU next week and offcourse we’ll release our work as soon as it is done, I’ll let you know!

    29/03/2007 @ 8:53 amEelco Wiersma
  5. your blogpostings only show day and month. Which year is this? 2007? 2008?

    01/04/2008 @ 11:58 am — rdeman
  6. hehe you’re right, never thought of that :$

    this post is from 2007

    03/04/2008 @ 6:34 pmEelco Wiersma
  7. Hello, i am trying to implement swfupload in cakephp, but i always get the HTTP 302 status and no file gets uploaded;
    So let me go into some of the details:
    I have the uploads controller, which uses the swf_upload component and the view (upload.ctp) where the flash object is initialized. here the upload_url resolves to calling the upload method defined in the uploads controller.
    I am testing this on my localhost (lamp) with Ubuntu 8.10

    SWF DEBUG: SWFUpload Init Complete
    SWF DEBUG:
    SWF DEBUG: —– SWF DEBUG OUTPUT —-
    SWF DEBUG: Build Number: SWFUPLOAD 2.2.1
    SWF DEBUG: movieName: SWFUpload_0
    SWF DEBUG: Upload URL: /cakeloc/admin/uploads/upload
    SWF DEBUG: File Types String: *.*
    SWF DEBUG: Parsed File Types:
    SWF DEBUG: HTTP Success: 0
    SWF DEBUG: File Types Description: All Files (*.*)
    SWF DEBUG: File Size Limit: 104857600 bytes
    SWF DEBUG: File Upload Limit: 10
    SWF DEBUG: File Queue Limit: 10
    SWF DEBUG: Post Params:
    SWF DEBUG: CAKESESSION=0668e235603437d2b0b50a55efe66258
    SWF DEBUG: —– END SWF DEBUG OUTPUT —-
    SWF DEBUG:
    SWF DEBUG: SWFUpload Init Complete
    SWF DEBUG:
    SWF DEBUG: —– SWF DEBUG OUTPUT —-
    SWF DEBUG: Build Number: SWFUPLOAD 2.2.1
    SWF DEBUG: movieName: SWFUpload_1
    SWF DEBUG: Upload URL: /cakeloc/admin/uploads/upload
    SWF DEBUG: File Types String: *.jpg;*.gif;*.png
    SWF DEBUG: Parsed File Types: jpg,gif,png
    SWF DEBUG: HTTP Success: 0
    SWF DEBUG: File Types Description: Image Files (*.jpg;*.gif;*.png)
    SWF DEBUG: File Size Limit: 204800 bytes
    SWF DEBUG: File Upload Limit: 10
    SWF DEBUG: File Queue Limit: 5
    SWF DEBUG: Post Params:
    SWF DEBUG: PHPSESSID=0668e235603437d2b0b50a55efe66258
    SWF DEBUG: —– END SWF DEBUG OUTPUT —-
    SWF DEBUG:
    SWF DEBUG: Event: fileDialogStart : Browsing files. Multi Select. Allowed file types: *.jpg;*.gif;*.png
    SWF DEBUG: Select Handler: Received the files selected from the dialog. Processing the file list…
    SWF DEBUG: Event: fileQueued : File ID: SWFUpload_1_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_1_0
    SWF DEBUG: Global Post Item: PHPSESSID=0668e235603437d2b0b50a55efe66258
    SWF DEBUG: ReturnUploadStart(): File accepted by startUpload event and readied for upload. Starting upload to /cakeloc/admin/uploads/upload for File ID: SWFUpload_1_0
    SWF DEBUG: Event: uploadProgress (OPEN): File ID: SWFUpload_1_0
    SWF DEBUG: Event: uploadProgress: File ID: SWFUpload_1_0. Bytes: 1016. Total: 1016
    SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_1_0. HTTP Status: 302.
    SWF DEBUG: Event: uploadComplete : Upload cycle complete.
    Error Code: HTTP Error, File name: view.gif, Message: 302

    05/11/2009 @ 6:10 pmJosé Coelho

Leave a comment