[WebDNA] New Upload Tool
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103037
interpreted = N
texte = Hi everyone,I've created a little set of files to make uploading and directory viewing easier. Lots of stuff for new people to learn from, and maybe even some of the more seasoned users.I find that many clients need a space on the server to house pdf and other documents for internal distribution. This works great for that.There are three files. You will include one on your admin page of choice. Another one is for public consumption, and the third is a small database for [convertchars]upload.inc: An upload form and a display of directory contents (one level).- Strips out spaces and other common illegal characters.- file list table sortable by name, date, and size, both directions.- Ability to rename and delete the files.- Ability to easily redefine the color scheme.- ability to define the upload folder so you can use the same include for different directories (on different pages)list.inc: For directory listing only, without the rename and delete features, but with links and the sorting features as abovenoillegals.db: The db used in [convertchars] to strip out spaces, etc.http://terryfic.com/UploadTool.zipLearn from this:- how to upload- how to deal with upload formvariables- how to rename a file- [listfiles]/[fileinfo] and how to control sort order- make clickable headings for sorting, both directions- [table]- alternate colors of
rows- safe way to delete with a confirmation link- set an initial variable that can be overridden later (secure=f)- format a number so 104913 comes out as 105K- custom [convertchars]- [middle]- [listwords]I offer this up to the community in the spirit of spreading the good word about WebDNA. Enjoy!Terry-- Terry Wilson | terry@terryfic.com | http://terryfic.comhttp://WhosComing.com - a simplified, affordable online reservation systemhttp://TightJacket.com -- stylish protection for your laptop--------------------------------------------------------------------------Attitude is the only difference between ordeal and adventure.
Associated Messages, from the most recent to the oldest:
Hi everyone,I've created a little set of files to make uploading and directory viewing easier. Lots of stuff for new people to learn from, and maybe even some of the more seasoned users.I find that many clients need a space on the server to house pdf and other documents for internal distribution. This works great for that.There are three files. You will include one on your admin page of choice. Another one is for public consumption, and the third is a small database for [convertchars]upload.inc: An upload form and a display of directory contents (one level).- Strips out spaces and other common illegal characters.- file list table sortable by name, date, and size, both directions.- Ability to rename and delete the files.- Ability to easily redefine the color scheme.- ability to define the upload folder so you can use the same include for different directories (on different pages)list.inc: For directory listing only, without the rename and delete features, but with links and the sorting features as abovenoillegals.db: The db used in [convertchars] to strip out spaces, etc.http://terryfic.com/UploadTool.zipLearn from this:- how to upload- how to deal with upload formvariables- how to rename a file- [listfiles]/[fileinfo] and how to control sort order- make clickable headings for sorting, both directions- [table]- alternate colors of