Current location: Hot Scripts Forums » General Web Coding » JavaScript » Script for uploading files onto the server

Script for uploading files onto the server

Reply
  #1 (permalink)  
Old 11-05-09, 12:16 PM
hansadamsson70 hansadamsson70 is offline
New Member
 
Join Date: Sep 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Rolleyes Script for uploading files onto the server

Hi,

I am looking for a script that will allow my clients to upload their file (: *.pdf, *.jpg, *.png, *.gif and *.zip formats) onto the server holding my website; from a form on my site.

Probably the script should be housed in the main directory or presumably in the cgi-bin directory.

The underlying principles (of the script) should take into consideration the issues of security pertaining to the type of files that are allowed to be uploaded.

The configuration of the form is as below. The script should perform the "action" of "UpLoadOrder.aspx" within the form.

Many thanks in advance for the script (hans.adamsson(at)wippies.com)

Regards,
Maunu

&&&&&&&&&&&&&&&
HTML Code:
    <form name="form1" method="post" action="UpLoadOrder.aspx" id="form1" onsubmit="return OnFormSubmit()" enctype="multipart/form-data">
 
    <div><strong><span id="LabelUploadConfirm" class="grey-txt">Complete the following information and then upload file:</span></strong>
    <div id="PanelUploadForm">
	
     <table class="bder" width="100%" align="center" border="0" cellpadding="2" cellspacing="0">
     <tbody><tr>
        <td class="grey-txt">Name:</td>
        <td><input name="CustName" id="CustName" onblur="CheckInput(this,'SpanCustName','Customer Name Required...')" type="text"><br><span id="SpanCustName" class="alertMessage"></span></td>
     </tr>
     <tr>
        <td class="grey-txt">Company:</td>
        <td><input name="CustCompany" id="CustCompany" onblur="CheckInput(this,'SpanCustCompany','Company Name Required...')" type="text"><br><span id="SpanCustCompany" class="alertMessage"></span></td>
     </tr>
     <tr>
        <td class="grey-txt">Email Address:</td>
        <td><input name="CustEmail" id="CustEmail" onblur="CheckInput(this,'SpanCustEmail','Email Address Required...')" type="text"><br><span id="SpanCustEmail" class="alertMessage"></span></td>
     </tr>
     <tr>
        <td class="grey-txt">Phone Number:</td>
        <td><input name="CustPhone" id="CustPhone" onblur="CheckInput(this,'SpanCustPhone','Phone Number Required...')" type="text"><br><span id="SpanCustPhone" class="alertMessage"></span></td>
     </tr>
     <tr>
        <td class="grey-txt">Upload File:</td>
        <td><input name="FileUpload" id="FileUpload" class="grey-head" size="15" contenteditable="false" type="file"><br><span id="SpanFileUpload" class="alertMessage"></span></td>
     </tr>
     <tr>
        <td colspan="2" class="grey-txt"><a href="#" onclick="return OnFormSubmit()"><img src="upload.gif" alt="Upload Now" title="Upload" width="90" border="0" height="24"></a></td>        
     </tr>

     </tbody></table>
                        
  </div>               
    </div>
    </form>

Last edited by Nico; 11-07-09 at 04:56 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 11-05-09, 01:20 PM
End User's Avatar
End User End User is offline
Level II Curmudgeon
 
Join Date: Dec 2004
Posts: 2,824
Thanks: 13
Thanked 10 Times in 9 Posts
There are a number of scripts here that do file upload...try looking here:

http://www.hotscripts.com/search/php/file+upload

Some will be scripts that include an upload feature, but some will be scripts that specifically do just uploading.
__________________
I don't live on the edge, but sometimes I go there to visit.
-------------------------------------------------------------------------
Sanitize Your Data (scroll down)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks

Tags
client, file, form, server, upload


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Handy Tip - move files from server to server End User Web Servers 0 12-24-08 09:10 AM
Status2k Server Monitoring & Administration Script! scribby General Advertisements 0 08-07-08 02:29 AM
Status2k - Server Monitoring & Statistics Script! scribby General Advertisements 0 07-01-08 08:26 AM
Server Monitoring Script - 25% Discount! scribby General Advertisements 0 05-28-08 07:58 AM
Status2k - Server Monitoring & Statistics Script! scribby General Advertisements 0 06-14-07 02:03 PM


All times are GMT -5. The time now is 10:39 PM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.