Tidy Pics Plupload v0.1

Release Notes

Just enable it and enjoy.

If you found some bug or would you reccomend more stuffs, just comment on it :D




  • Add admin panel settings, so admins could select wich engines use. (For example: flash, html5, gears, etc...).
  • Fix bugs (thanks to the people who commented and helped).
  • Add Templates to the file selector. (on later releases)
  • Very cool do you think there is a way to make this work with the File Plugin for like when you Upload Mp3 Files so there will be a Ajax or what ever type of Progress Bar Showing? Currently when you upload Files like Mp3 Music Files you really do not know if it is going to be working or if the site is going to crash or the file just does not save or upload properly. This would be great to have this same type of Plugin for the File Plugin for Music File Uploads or other types of files.

  • Yes it could be used for files inputs, I will tihnk in some solution.

    Thanks for the comment

  • Release 0.5 in version display in admin section 0.01 :)

  • doesnt work with latest beta release of tidypics unless you choose basic uploader! it then appears

  • plus how do you know what your running silverlight/flash/etc etc? to ensure it resizes before upload client side...?

  • Uhm I have to test with the new release of tidypics then.

    To know wich engine you're running, just put the mouse over the box, and it will tell you

  • @Germanaz0 Great plugin! It is very cool! Thanks for this! btw is there any way to implement this uploader with the files plugin?

  • Ok wanted to come back to this plugin I had an Error when I tried to upload a photo so I had to Uninstall and Delete this plugin. It had some error with the Lib or Library. Wish I could use this plugin plus the Drag and Drop did not work.

  • @travel_guiders, yes it is possible, I would try it :D ...

    @soldierone, tell me wich error did you had, if was the drag and drop feature, tell me wich engine is using the library to upload the picture, just do over mouse on the app, like the picture 2, and it will tell you. Drag & Drop feature works only for the HTML5 engine. :D

  • Ah the last answer about @travel_guiders was for rjcalifornia, to @travel_guiders, thanks for test it :D

  • Hello,

    I've this error:


    elgg 1.6.1 Fatal error: Call to undefined function elgg_extend_view() in /var/www/vhosts/mon-enfant-mon-amour.com/httpdocs/mod/tidypicsExt/start.php on line 9

    Can you help me.


  • djeph this is because you have an older version of Elgg, if you wanna fix it, just replace the line, elgg_extend_view for extend_view on start.php. Or upgrade your Elgg Version.


    Thanks for testing and using it :D

  • Thank you it works almost, now when I load an image it gives me an error: "unknown image type" (I tried JPEG and PNG).


  • Great plugin, but I was the next error when I go to save the uploads.

    Fatal error: Call to undefined function mime_content_type() in /mod/tidypicsExt/lib/upload_lib.php on line 11

    I have 1.7.1.


  • @djeph and @gastre, those errors are related because your server, I will fix those errors, thanks for reporting.

  • I have the server in arvixe. regards.

  • @germanaz0 so, this is kinda compatible with 1.6.x?

  • @germanaz0, hello, I test the plugin in other hosting (Fatcow), with 1.7.4 and have the same error.

    Fatal error: Call to undefined function mime_content_type() in /mod/tidypicsExt/lib/upload_lib.php on line 11

  • @rjcalifornia, I think so.

    @gastre, ok I will test and fix it tomorrow, have to validate a pair of stuffs. Thanks for testing and reporting

  • Hi,

    Add this to upload_lib.php file:


    function mime_content_type($filename) {

            $mime_types = array(

                'txt' => 'text/plain',
                'htm' => 'text/html',
                'html' => 'text/html',
                'php' => 'text/html',
                'css' => 'text/css',
                'js' => 'application/javascript',
                'json' => 'application/json',
                'xml' => 'application/xml',
                'swf' => 'application/x-shockwave-flash',
                'flv' => 'video/x-flv',

                // images
                'png' => 'image/png',
                'jpe' => 'image/jpeg',
                'jpeg' => 'image/jpeg',
                'jpg' => 'image/jpeg',
                'gif' => 'image/gif',
                'bmp' => 'image/bmp',
                'ico' => 'image/vnd.microsoft.icon',
                'tiff' => 'image/tiff',
                'tif' => 'image/tiff',
                'svg' => 'image/svg+xml',
                'svgz' => 'image/svg+xml',

                // archives
                'zip' => 'application/zip',
                'rar' => 'application/x-rar-compressed',
                'exe' => 'application/x-msdownload',
                'msi' => 'application/x-msdownload',
                'cab' => 'application/vnd.ms-cab-compressed',

                // audio/video
                'mp3' => 'audio/mpeg',
                'qt' => 'video/quicktime',
                'mov' => 'video/quicktime',

                // adobe
                'pdf' => 'application/pdf',
                'psd' => 'image/vnd.adobe.photoshop',
                'ai' => 'application/postscript',
                'eps' => 'application/postscript',
                'ps' => 'application/postscript',

                // ms office
                'doc' => 'application/msword',
                'rtf' => 'application/rtf',
                'xls' => 'application/vnd.ms-excel',
                'ppt' => 'application/vnd.ms-powerpoint',

                // open office
                'odt' => 'application/vnd.oasis.opendocument.text',
                'ods' => 'application/vnd.oasis.opendocument.spreadsheet',

            $ext = strtolower(array_pop(explode('.',$filename)));
            if (array_key_exists($ext, $mime_types)) {
                return $mime_types[$ext];
            elseif (function_exists('finfo_open')) {
                $finfo = finfo_open(FILEINFO_MIME);
                $mimetype = finfo_file($finfo, $filename);
                return $mimetype;
            else {
                return 'application/octet-stream';


    Resolved? :)

  • Hey Sil nice solution, I will add that fix, the problem is that some PHP versions or the server don't include the function content_mime_type, I could use another standar function, but your solution is very cool, today I will add this to the plugin

  • @$łŁ, peeeeeerfect, now work Fine.

    @Germanaz0 Great plugin, Thanks, recomended +1.

    My litle aportation. , spanish languaje.


        $spanish = array(
             * Menu items and titles
            'tidypicsExt:plupload_header_title' => "Seleccionar fotos",
            'tidypicsExt:plupload_header_text' => "Añade las Fotos para subirlas y luego pulsa el botón Subir Fotos.",
            'tidypicsExt:plupload_file_name' => "Nombre de Archivo",
            'tidypicsExt:plupload_file_size' => "Tamaño",
            'tidypicsExt:plupload_file_status' => "Progreso",
            'tidypicsExt:plupload_droptext' => "Arrastra los Archivos aqui.",
            'tidypicsExt:plupload_button_add' => "Añadir Fotos",
            'tidypicsExt:plupload_start' => "Subir Fotos",
            'tidypicsExt:plupload_stop_current_upload' => 'Detener progreso de subida',
            'tidypicsExt:plupload_start_uploading_queue' => 'Comenzar subidas pausadas',
            'tidypicsExt:error_message:no_files_uploaded' => "Debes de elegir al menos un archivo.",
                    'tidypicsExt:plupload:submit' => "Subir varias Fotos",

  • Thanks for the language pack @gastre. I will add those features when I could find a litle time, maybe on weekend, for that reason I couldnt fix nothing yet. Sorry for that, will work asap.

    And thank @sit too for all that he made.


Sexy Programmer Guy ^^ ...


  • Category: Photos and Images
  • License: GNU Lesser General Public License (LGPL) version 2.1
  • Updated: 2014-11-17
  • Downloads: 5262
  • Recommendations: 7

Other Projects

View Germanaz0's plugins