Modules - WebDNA Upload Module

It is easy to upload files using WebDNA!

Often, you just want to get files onto your server without using ftp. For instance: image hosting for eBay, internal documents for an organization (reimbursement forms, etc.), handouts from seminars, newsletter archives, large files for a printing company, the list goes on. This module gives you a way to upload and manage such files, and a way for the recipient to get them.

The Upload Module contains 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]. Both .inc files are a single <table>, so it is easy to drop into a page.

upload.inc: An upload form and a display of directory contents (one level).
- Strips out spaces and other common illegal characters.
- File list sortable by name, date, and size, in both directions.
- Ability to rename and delete the files.
- Ability to easily redefine the color scheme of the module.
- Ability to define the upload folder so you can use the same include for different directories (best to do this on different pages to avoid redundancy)

list.inc: For directory listing only, without the rename and delete features, but with links and the sorting features as above. Great as a page to let others retrieve files.

noillegals.db: The db used in [convertchars] to strip out spaces, etc.

Get the Upload Module


Learn from this:
- how to upload
- how to deal with upload multi-form variables
- how to rename a file using [movefile]
- [listfiles]/[fileinfo] and how to control sort order
- make clickable headings for sorting, both directions
- use of the [table] context
- alternate colors of <table> rows
- safe way to delete with a confirmation message
- set an initial variable that will be overridden later (secure=f)
- format a number so 104913 comes out as 105K
- custom [convertchars] database
- use of the [middle] context
- use of the [listwords] context Terry Wilson

DOWNLOAD WEBDNA NOW!

Top Articles:

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

F.A.Q

A compilation of some user's questions...

[biotype]

BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...

WebDNA Libraries

A list of available libraries for WebDNA...

Download WebDNA Applications

WebDNA applications...

Tips and Tricks

A list of user-submitted tips ...

Related Readings:

WebDNA AJAX module

Use WebDNA to simplify AJAX functionality on your pages...

WebDNA AJAX File Uploader Module

This module allows upload through a drag and drop action...

WebDNA Upload Module

It is easy to upload files using WebDNA!...

WebDNA AJAX File Uploader Module

This module allows upload through a drag and drop action...

ImageMagick WebDNA module

ImageMagick is a must-have for sites uploading and managing images...