Hi All,
I'm looking for anyone that has a development server that will be interested in alpha testing a file upload module. It will basically allow submissions to include a file attachment. You can control by Mime Type which files you allow to be uploaded and the max file size. All files are stored locally as file_xxxx.dat -- where xxxx is the link id. This is to prevent file name collisions from other entries. However, when the file is downloaded, it is saved as the original name that was uploaded.
It's still pretty early in its stages and I'm testing locally. However, it can be used to upload the following file types:
- MS Word
- MS Excel
- EXE files (not recommended)
- Photoshop files
- PDF
- EPS
- Real Audio, Real Video, Real Media
- ZIP files
- Flash SWF
- Flash FLA
- AVI, Quicktime Mov, MPEG
- JPG, BMP, PICT, PNG, GIF files
- HTML
- Plain text
and more can be added by including the file's mime type in an array. Each mime type has a corresponding icon for easy identification.
I've attached a screenshot of the module working so you can see what it will possibly look like.
Best,
Cent
![]() |
| | LinkBack | Thread Tools | Display Modes |
| ||||
| [MOD] File Upload Module (v0.1) -- Looking for testers
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) |
| ||||
|
If anyone is up to test it on a development server, you can download the File Upload module (v0.1) here. The default is link_field1, so you may want to change. If you do, change module_fileupload_filename_field and [module_fileupload_filename_field2[/b] in the settings file to match as commented. In file_upload_main.php look for the function called file_upload_process_handler. The allowedMimeTypes is an array of file types you will allow to be uploaded to your server. This will eventually be moved into the settings file at some point. Though for some reason I can't put it in that file and still read it during the function execution. As it stands now (by default), you can upload PDF, ZIP and HTML files. You can add to this by copying and pasting mime types from the allMimeTypes variable in the file_upload_preview_handler function. You can see it working (to some degree) at: here. And what an entry might look like here. I don't think its quite ready for prime time yet. However, let me know how it works for you and things you think I should add or change. Best, Cent
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) |
| |||
|
You´ve heard my voice! Thank you, I´ll definitely test the mod in the next few days. Will it work with images as the image upload module? Last edited by tbones; 06-21-2007 at 02:57 PM.. Reason: Way of dealiing with images |
| ||||
|
Hi tbones, You can use it to upload any type of file as long as you know the mime type you're expecting. Unlike the image upload module, this module simply allows users to download the file... there is no image preview/thumbnail. Best, Cent
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) |
| |||
|
Can both modules be used simultaneously? |
| ||||
|
Yes. Unfortunately each module requires their own extra link field. However, the default link field for each module is link_field1. So be sure to set the link fields accordingly and you can use them together. I would suggest however, to first try the file upload on a development site as its still pretty early in its development life. Best, Cent
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) |
| |||
|
Cent, I think the functionality of this module would be useful for 2 areas - 1) Within Stories 2) within user profiles (users can upload resumes to their profile page, etc.) Ash, is this something that we can also integrate into user profiles? I think Pligg could benefit tremendously from enabling more informative user profile pages (eg. About me section, resumes, etc.) Thx -A
__________________ URateStuff - User Powered Product Reviews | URateLocal - User Powered Local Business Reviews for Los Angeles, New York, Toronto(GTA), Kitchener and more Last edited by aaronpais; 06-22-2007 at 12:19 PM.. |
| ||||
|
While I haven't tried it, it can be tailored to receive the field containing the data by directly including the field in the check_actions. Ie. check_actions('file_upload_process', yourformfield). Whereas yourformfield could either be a link_field or a custom field. It doesn't really matter. The other modification would be that it would need to point to the right DB table. Right now, it just points to table_links. That would require a slight modification to the module, though its quite possible. Best, Cent
__________________ All of my modules are developed for free to help support the Pligg community. If you use or feel my modules were helpful to your site and want to thank me, please support the Pligg development team by donating. Modules: Welcome Private Message (v0.1), Welcome Email (v0.1), Thickbox Module (v0.3), Image Upload (v1.0) & MP3 Upload Module (v0.9) |
| |||
|
I´ve tried to install with v9.5: - I´ve copied the subfolder file_upload to ./modules - I´ve changed to <form action="{$URL_submit}" method="post" name="thisform" id="thisform" enctype="multipart/form-data"> at submit_step2.tpl - I´ve placed the code above <div class="top"> at editlink.php - I´ve activated the module Profile Extra Fields v0.2 and did the rest as mentioned in Readme. Result: I don´t get any extra field. Does it have to be defined somewhere? Edit: I left ./modules/file_upload/file_upload_settings.php untouched. Last edited by tbones; 06-22-2007 at 09:10 PM.. Reason: Edit: No changes in settings |
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [MOD] Image Upload Module (v0.93) -- Please test | cent | Modification Tutorials | 48 | 05-16-2008 08:08 PM |
| [MOD] MP3 Upload Module | cent | Modification Tutorials | 32 | 03-02-2008 03:07 AM |
| [MOD] File Upload Module for 9.8.2 Is here for download :) | Redux | Modification Tutorials | 7 | 01-27-2008 08:21 AM |
| [MOD] 9.8.2 File Upload Working | Redux | Modification Tutorials | 1 | 12-30-2007 07:53 PM |
| [MOD] File Upload Module -- seeking requests for features | cent | Modification Tutorials | 3 | 08-11-2007 04:39 AM |





Linear Mode

