From: Geoff S. <ge...@ho...> - 2002-01-04 04:09:16
|
One item missing from phpWebsite is the ability to upload a file and create a link to it from an announcement or from a user page. The purpose of this is to eliminate the need for phpwebsite Admins to have FTP access. So, here is a simple specification for accomplishing this: Provide a "browse" to file function, exactly as for the images on the user pages. Provide a text box for a file description. An example is the easiest way to describe the functionality: The user selects the file "1099taxform.pdf" from his harddrive and enters the Description: "Printable 1099 Form". When this is processed, the phpWebsite uploads the file, creates a link to it with the description as the text of the link. So, if the file is uploaded into a directory called "/userpages/files" then, here is the code that would be placed at the bottom of the appropriate section on a user page, or at the bottom of the announcement page: <a href="/userpages/files/1099taxform.pdf">Printable 1099 Form</a> Additional requirements: Admin or Webmaster configurable list of allowed file extensions. This will prevent the upload of executable files. On user pages, each section of the user page should have this feature, just as each section has an upload for a graphic. The ability to delete the file, just as a graphic can be deleted now. NICE TO HAVE: A check box to provide a hyperlink to the file from the graphic. Geoff Staples www.Hostricity.com |