View Full Version : Uploading files
techjosh
04-08-2009, 11:53 AM
Hello. As part of my website, I want the ability to download and upload files. It's pretty easy to integrate downloadable files, but I'm not sure how to make it so you can upload a file. I do not have a server so it would go directly to my public_html folder (I'd assume) in my web folder. Any ideas? (Please keep replies simple; I'm new to html.)
redsox9
04-08-2009, 01:12 PM
Are you looking for visitors to be able to upload and download files, or do you need the ability to edit files offline and then upload them to the server?
techjosh
04-08-2009, 03:32 PM
people in the business would upload their own files (I'll have to set up a pass/login at some point.) Though now that you mention it, it would be neat if people had the ability to edit files. That would be a second priority tho.
redsox9
04-08-2009, 03:46 PM
You would need to utilize a server-side script to allow for the uploading of files by means other than FTP. There are likely some scripts out there (PHP or Perl) that would likely require a bit of technical savvy. Downloads are easy enough; so long as you have a page that points to the file, it's a simple matter of choosing that file.
Online editing is another matter entirely. If you mean to update web pages, you would be better off using content management system (CMS) software. This allows for "on-the-fly" edits.
techjosh
04-08-2009, 07:17 PM
For others who may be reading this thread and also wants to know how to upload, I did some quick research and found two sites
This site attempts to explain how to upload with a couple examples (if you scroll to the bottom of the page)
http://www.element-it.com/DEMOMULTIPOW.aspx
This site is another forum with some guy who gave his own coding for uploading
http://www.php.net/manual/en/features.file-upload.php
I won't have a chance to test these or mess with them till next week. If anyone has any comments or thoughts please let me know. I'm still in search for the best solution myself.
redsox9 thx for pointing me in the right direction. Any other thoughts you may have plz lemme know.
HappinessIsaWarmGun
08-04-2009, 11:35 PM
What about some of the Perl Modules or PHP Pear packages that can be installed from the Software/Services section of your Bluehost account's cpanel?
For example:
CGI File Upload (http://search.cpan.org/~alexmass/CGI-FileUpload-0.03/) in Perl Modules section
HTTP_Upload (0.9.1 stable) (http://pear.php.net/package/HTTP_Upload/docs) in the PHP Pear section
You can find similar examples of scripts for file uploading by searching for "file upload" or "upload" in the Perl Modules or PHP Pear section of the cpanel.
Basically here are the listings of Perl Modules (http://search.cpan.org/) and the listing of PHP Pear packages (http://pear.php.net/packages.php).
If you don't want to use the scripts that can be installed through the cpanel, then you could consider something like this free Perl script: PS Upload 4.0 (http://www.perlservices.net/en/programs/psupload/users_guide.shtml)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.