Hi All,
With the Image Upload module just about wrapped up I've been fielding requests for a file upload module. Is this something that would be of interest to the Pligg community?
I believe the functions are very similar to the Image Upload module:
- Allow a binary file to be attached to an entry
- Settings for specific file types by MIME (not extension -- unreliable). So the admin can only allow say ZIP, PDF, SIT, etc. files. Recommend not allowing EXE files of any kind to be attached as they may pose a potential virus issue.
- Allow editing the entry and deleting the file, uploading a new one.
- In the link summary, there will be a link to download the file with a corresponding icon for the file type.
From what I see, the only limitations will be the maximum file size set in the PHP.ini file. I think by default this is set to 5MB. The module will have no control over this so you will probably need access to your PHP.ini file to accept larger file uploads. Basically changing the post_max_size and upload_max_filesize.
The actual file may be stored with a unique ID to prevent filename collisions. However, in the DB the filename will be stored as the original name. When a user goes to download the file, the file will be downloaded using the original name. I think it may be helpful to have some sort of hotlinking prevention in place so that the file needs to be downloaded from the actual site. This will prevent people from linking directly to the file on other sites.
Let me know if this is something you guys will be interested in and what features not mentioned above would be good to have.
Best,
Cent





Linear Mode




