Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 11-07-2007, 03:50 AM   #1 (permalink)
Love.Oasis
banned
 
Join Date: Oct 2007
Posts: 21
Love.Oasis is on a distinguished road
Basic Code

What's the minimum code required, in order to upload files to a web server securely?
Love.Oasis is offline   Reply With Quote
Old 11-07-2007, 08:22 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
all you need is a form with a file field to get a file on your server.

i think 'securely' would criteria which is specific to your application though. need more info on your app to answer that part.
__________________
Mike
sde is offline   Reply With Quote
Old 11-07-2007, 12:05 PM   #3 (permalink)
Love.Oasis
banned
 
Join Date: Oct 2007
Posts: 21
Love.Oasis is on a distinguished road
Can you give me an example of the bare bones code, needed to upload a file?
Love.Oasis is offline   Reply With Quote
Old 11-07-2007, 12:50 PM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
HTML Code:
<form enctype="multipart/form-data" action="upload.php" method="POST">
Please choose a file: <input name="uploaded" type="file" /><br />
<input type="submit" value="Upload" />
</form>
you can access the file information on upload.php with the $_FILES array. again, not sure what you want to do with the files but depending on that, your php code may vary.
__________________
Mike
sde is offline   Reply With Quote
Old 11-08-2007, 07:39 AM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,692
redhead is on a distinguished road
Sorry, but didn't you use the code displayed in This thread, if so, then why ask this question ???
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 11-08-2007, 08:41 AM   #6 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
because it's salch! lol.

many thanks.
__________________
Mike
sde is offline   Reply With Quote
Old 01-03-2008, 12:16 AM   #7 (permalink)
priji
Recruit
 
Join Date: Jan 2008
Posts: 5
priji is on a distinguished road
great.
priji is offline   Reply With Quote
Reply

Bookmarks

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic asp code shelleyman MS Technologies ( ASP, VB, C#, .NET ) 0 08-11-2006 03:02 PM
Basic Code Help patelk MS Technologies ( ASP, VB, C#, .NET ) 1 10-26-2004 12:34 PM
Cisco Code breaking sde Code Newbie News 0 05-21-2004 07:10 AM
Basic Code won't compile Zenogear11 Standard C, C++ 1 04-08-2003 04:20 PM


All times are GMT -8. The time now is 06:28 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting