Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

javascript to post a file

javascript to post a file

javascript to post a file

I've been trying to find a script that will allow you to post a file via a web form to a directory (it doesn't have to look pretty) But I've had no such luck. I do understand that there is some security inherent with JavaScript with writing files, but I don't know if this affects me.

If nothing else, I have the HTML for it (the easy part), I just can't figure out the JavaScript for running the form.


RE: javascript to post a file

Yes, I can MOST LIKELY make you a script that will do that. Right now, I just happen to be getting ready to add a few such scripts to my pages. If you'll kindly give me your URL, and let me know how you currently save your pages, I can probably begin working on a script that will suit your needs.


RE: javascript to post a file

Thanks for the assistance! I'm afraid URLs will do nothing as the main function of this is for my group on the company's intranet. However, I like the idea and if I can ever get it to work at work, I would like to add that function to my website at http://www.dallas.quik.com/grebo

The computer setup is currently as such:
We have a windows network in which on of our drives is mapped to the UNIX webserver. I can drop any file into the directories on the mapped drive via windows explorer and it shows up on the web. However, in the end, the file structure is UNIX and we have to work with that as opposed to getting FrontPage extentions to work on an NT server.

I hope this helps with what you need to know. Thanks again for the help.


RE: javascript to post a file

One thing I forgot to ask you last time:
Are you wanting to allow people to edit,then upload info as a file? Or are you wanting to allow them to upload files??? I at first thought that you were merely intending to allow them to add to your website or whatever. I think (if you're wanting to allow the uploading of files) that your best answer will probably be found in Perl. perl is fully supported by your UNIX server, but I am not experienced enough with Perl to help you write the script you're needing.

Hope I've helped,

RE: javascript to post a file

Sorry I wasn't clearer. I actually want them to be able to post files (Word docs and such) to the directory. Thanks for the help though. I've got my question posted in the Perl group as well in case there is a solution there.

Thanks again for the help.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close