Hi All

Guess this request is a little outside normal TW stuff..... hope
someone can help anyway!!!

I am using a HTML form to submit information from a TW to a database
(the TW is basically my research notes, shared lecture notes and
presentation system rolled into one!!).

I am wanting to have a system whereby students can share (PDF) files
with others..... that part is working...using HTML forms the system
can upload the file to my server.....and ...record the data in the
data base (MySQL) ... I now want the TW to record (make a new tiddler)
that the file was uploaded in a format that allows other students to
open it (the TW is "shared" via Dropbox).

The problem is that I am using <input type = "file"
name="uploadfile">...which allows student to select their file......
AND now I need TW to know the name of the file selected. Normally I
can access form data using something like (inside javascript) -  var
filename=this.form.uploadfile.value;

..this works when the input "type=text" ....but not when
"type=file"...since apparently the input form includes the whole
file....... But I need to know the name of the file the student
selected and the system uploaded..... I need to know it client-side
(inside the javascript of the <input type = "submit" value="click"
onmouse='...........'>. Ideally I need to know just the file
name....not the full pathname...

Help?

Thanks in Advance
Skye

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to tiddlywiki@googlegroups.com.
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to