bulk upload mod v1.0

Release Notes

this is a replacement for the original "file"-plugin. it uses "flexupload" for the uploading process.

files are automatically titled like thier original name and are made public.

made as a mod of "Release - 1.2, Version - 2008120901".

i also improved the upload handling a bit (see actions/upload.php).

to make this mod work you must edit your engine/lib/sessions.php and change the method get_session_fingerprint() to "return md5($_SERVER['REMOTE_ADDR'] . get_site_secret());"  (because flexupload sends a different user_agent).

hope this helps somebody!

p.s: is it possible to improve the file-plugin without using the same name? can i override the get_session_fingerprint()-method automatically? can somebody point me in the right direction?

  • I don't think there is any way to override get_session_fingerprint() like you can with Elgg actions or Elgg events.

  • Oh cool, I was waiting for someone to mod the file plugin. I have three questions,

    1. Would it be easily possible to switch back to the original file plugiin once I used your mod?

    2. Is it possible in your plugin to set a maximum filesize and/or an overall file-quota per user?

    3. Would this also work wit TidyPics? I am not sure how TidyPics works and if it needs the original file plugin.

    Thanks, Daniel

  • 1. yes of course. storage is not affected by the mod.

    2. look at views/file/default/upload.php to tell flexupload a maximum filesize (this is, of course, "hackable"). additionally you should set max "upload_max_size" in you ".htaccess"-file.

    3. test it!

  • OK, I tried it now, removed the original file plugin, adjusted engine/lib/sessions.php and tried to upload something. The uploader appears and I can select files, the size is correctly beeing displayed but the type fields remain empty.

    When i hit the upload button, it says it is uploading file 1 but it isn't. The progressabr stays at 0% and nothing happens.

  • yeah, having problems with the progressbar, too. thought it was just a problem with my linux box. but the uploads work, however. i would really apreaciate a working progressbar, but the essential part (selecting many files which just one "open..."-dialog) works. i am no flash/flex expert, so my work is basicly done here.

    flexupload is open source and just version 1.0, there is also swfupload which might be used instead.

  • look great just a problem in the upload new file, the view somehow not right in the bottom , it put spotlight adds outsite the frame :(   

  • and what about controlling file size of uploads?

  •  hey guys,

    i am getting problem after enabeling this plugin. It shows me that this plugin is misconfigured.

  • My problem with this plugin is that it logs me out and then there is no file uploaded

  • I keep getting I/O Error!  Error#2038, it happens after I try to upload a large file (70MB) and then it happens for all users and files upon upload attempt.  Any ideas as to what might be causing this?

  • im same error I/O Error#2038


    any ideas?

  • I got the solution!!

    You've to edit your .htaccess:



  • No Rodolfo, i was wrong bro... but, now the bar progress works fine :)

    I'm still looking for the way to fix the problem of that pluging. Now, in my case,  a simply add the lines below in web.config file.
       <httpRuntime maxRequestLength="102400" executionTimeout="3600" />
          <requestLimits maxAllowedContentLength="100000000" />

    Please, if post the result of your test.

    Regards and good luck  for all,

  • or if you're running in a localnetwork, it's possible to work editing the .htaccess with:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off

  • i would love to have this feature in 1.8 if you guys have found the solution


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