SWFUploader for tidypics 1.07 v0.99

Release Notes

Changes:

view/forms/upload.php:
* Rewrite the form in order to use the swfuploader

view/input/multi_file.php
* This file handles the most work to do with the SWFUploader

action/upload.php
* Do some modifiy to accept SWFUpload's special mimetype and return
* accpetable results for javascript

vendors/swfupload/*
* These files are swfuploader files

Problems:
* The authentication of flex upload. I use the session code and SWFUpload cookie plugin make it work. When comes to upload action, I just get the user object from the posted code from client, and set it to $_SESSION['user']. This may be a unpredictable problem in user authentication.
* SWFUpload sends any file with mime type application/octet-stream. Sometimes it's not a good idea to detect the mime type by PHP function mime_content_type() because it's not always usable. So I detect the mime type through extension name.

* Bugs fixed:

* After upload browser will redirect to login place

* Debug mode is open.

Screenshot:

image

  • hi,

    I am using your plugin. But after i upload files i am redired to login page in ie8 and ie7. It is working fine in FF. I uploaded three files in FF and i got the response

    <pre>ElggFile Object(    [filestore:private] => ElggDiskFilestore Object        (            [dir_root:private] => /mnt/stor1-wc2-dfw1/443295/www.twoplaygrounds.com/web/data_2pg/          &nbsp; [matrix_depth:private] => 5        )    [handle:private] =>     [attributes:protected] => Array        (            [guid] =>             [type] => object            [subtype] => file            [owner_guid] => 4076            [container_guid] => 4076            [site_guid] => 0            [access_id] => 0            [time_created] =>             [time_updated] =>             [enabled] => yes            [tables_split] => 2            [tables_loaded] => 0            [title] =>             [description] =>         )    [url_override:protected] =>     [icon_override:protected] =>     [temp_metadata:protected] => Array        (        )    [temp_annotations:protected] => Array        (        )    [valid:private] => )5226-

    <pre>ElggFile Object(    [filestore:private] => ElggDiskFilestore Object        (            [dir_root:private] => /mnt/stor1-wc2-dfw1/443295/www.twoplaygrounds.com/web/data_2pg/          &nbsp; [matrix_depth:private] => 5        )    [handle:private] =>     [attributes:protected] => Array        (            [guid] =>             [type] => object            [subtype] => file            [owner_guid] => 4076            [container_guid] => 4076            [site_guid] => 0            [access_id] => 0            [time_created] =>             [time_updated] =>             [enabled] => yes            [tables_split] => 2            [tables_loaded] => 0            [title] =>             [description] =>         )    [url_override:protected] =>     [icon_override:protected] =>     [temp_metadata:protected] => Array        (        )    [temp_annotations:protected] => Array        (        )    [valid:private] => )5227-


    <pre>ElggFile Object(    [filestore:private] => ElggDiskFilestore Object        (            [dir_root:private] => /mnt/stor1-wc2-dfw1/443295/www.twoplaygrounds.com/web/data_2pg/          &nbsp; [matrix_depth:private] => 5        )    [handle:private] =>     [attributes:protected] => Array        (            [guid] =>             [type] => object            [subtype] => file            [owner_guid] => 4076            [container_guid] => 4076            [site_guid] => 0            [access_id] => 0            [time_created] =>             [time_updated] =>             [enabled] => yes            [tables_split] => 2            [tables_loaded] => 0            [title] =>             [description] =>         )    [url_override:protected] =>     [icon_override:protected] =>     [temp_metadata:protected] => Array        (        )    [temp_annotations:protected] => Array        (        )    [valid:private] => )5228

     

    and in ie i only get

    <pre>ElggFile Object(    [filestore:private] => ElggDiskFilestore Object        (            [dir_root:private] => /mnt/stor1-wc2-dfw1/443295/www.twoplaygrounds.com/web/data_2pg/          &nbsp; [matrix_depth:private] => 5        )    [handle:private] =>     [attributes:protected] => Array        (            [guid] =>             [type] => object            [subtype] => file            [owner_guid] => 0            [container_guid] => 0            [site_guid] => 0            [access_id] => 0            [time_created] =>             [time_updated] =>             [enabled] => yes            [tables_split] => 2            [tables_loaded] => 0            [title] =>             [description] =>         )    [url_override:protected] =>     [icon_override:protected] =>     [temp_metadata:protected] => Array        (        )    [temp_annotations:protected] => Array        (        )    [valid:private] => )<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta name="ElggRelease" content="1.6.1" /><meta name="ElggVersion" content="2009072201" />      <meta http-equiv="Pragma" content="no-cache">     <META HTTP-EQUIV="Expires" CONTENT="-1"> <title>Two Playgrounds: Welcome to Elgg.</title>    <link href="http://www.twoplaygrounds.com/javascript/formsvalidation/validation.css" rel="stylesheet" type="text/css" media="all" />  <link href="http://www.twoplaygrounds.com/javascript/formsvalidation/widgets/textfieldvalidation/SpryValidationTextField.css" rel="stylesheet" type="text/css" /><link href="http://www.twoplaygrounds.com/javascript/formsvalidation/widgets/passwordvalidation/SpryValidationPassword.css" rel="stylesheet" type="text/css" /><link href="http://www.twoplaygrounds.com/javascript/formsvalidation/widgets/confirmvalidation/SpryValidationConfirm.css" rel="stylesheet" type="

     

    The difference you can see is that for first object it doesnt get ownerid.......Please help me out.I am stuck here.

    Thanks.

  • hey simophin,

    can u tell me what changes u made to solve "After upload browser will redirect to login place" bug.

    Thanks.

     

  • I'm sorry about that I'm no more taking care of this project because of the old version of tidypics it uses and it may cause some security issues, which can't be solved by me for now.

  • but you have specified in this version that above bug is fixed.........i just want to know what u have done to fix that. because i am redirected to my login page in ie8.

    thanks

Stats

  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 1041
  • Recommendations: 0