473,804 Members | 2,190 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML code to browse and attach files

2 New Member
Can someone guide how to code in simple HTML, how to browse the files and attach them. That is, when I click a button say "Attach", a window should be opened with which one can browse the files in one's machine and attach them.

I tried to search for the HTML code to accomplish this in Google, but couldnt find any.

Lots of thanks in advance,
Rama
Jun 18 '07 #1
5 17237
rrkrishna24
2 New Member
JUst found that we can use the HTML <input> tag <input type="file" name="datafile" >.

Can someone tell me, using servlets, how this can be received and saved on the server side?
Jun 18 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
You must ask that question in the appropriate programming board.
Jun 18 '07 #3
satya0414
1 New Member
can any one give the code for <input type ="file"> behavior in the link
Oct 19 '07 #4
robin1983
99 New Member
are you searching for this
[HTML]<input type="file" name="file" id="file">[/HTML]

can any one give the code for <input type ="file"> behavior in the link
Oct 19 '07 #5
JamieHowarth0
533 Recognized Expert Contributor
Hi rrkrishna,

That question needs to be directed to the ASP, PHP, or ColdFusion boards (depending on a few different criteria - what your server supports, what operating system it runs, and what you want done with the file e.g. stored in a database or file system, and how you want it manipulated).

If you have a Microsoft Windows server then ask your question in the ASP forum and we'll try and help you out.

Best regards,

medicineworker
Oct 19 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

5
7590
by: MK | last post by:
Dear friends, I have many HTML files and they all have some common HTML code which is basically bunch of tags which are in all the files. How can I put the common code in one file and then share it in all the files? It is some thing like following in all the HTML files which I have. <HTML> <HEAD> Common </HEAD> <BODY>
1
12680
by: vijaygparikh | last post by:
HI i am writting a code for open default mail client and it works fine. i want to attach a file with the default mail client but file is not attached with "mailto:" option. If any one has idea about open default mail client with attach files using "mailto:" then pls reply me. Thanks in Advance. regards
0
1247
by: morty | last post by:
Hi All, I am wondering if anyone knows of an online search tool (or software to download) that can do the following? I need to search all html files in a web site directory (live on the Net) to see if any of the pages link to a specific file. Basically I am working on a web site that doesn't have any existing documention to show what files link to what, and I need to start retiring files, etc. I need a way to search the HTML code for...
1
4359
by: kevcar40 | last post by:
i have a form that i want to attach files to as hyperlinks the problem is there could be upto 10 files attached to the form or maybe none How can i go about 1 creating the attachements and storing them in a table 2 Build a list of attached files for the user to view via a button i have built the file path string so i am going to the folder where the file is stored
1
2899
by: cnixuser | last post by:
Hello, I am having a problem that I believe is related to the way a stream reader object looks for a text file by default. What I am doing is using a StreamReader object to read the text of a text file which includes some html code to populate html formatted content as the text of an asp:label (<asp:label>). The reading of the text file itself goes just fine ;however, this only occurs when I use an absolute file path which will not work of...
3
1298
by: Gubby | last post by:
Hi all. I'm a fairly basic HTML worker, don't know any other language. This is my site: www.andrewgubb.com. A simple text-and-images site, like a blog I suppose except that I'm having more fun doing it just HTML. This is a detail I've found when building my site. There are elements of all the pages which are common to each, but which I have to change every so often. Opening every single file and copying and pasting the changes is a massive...
0
840
by: atlanteavila | last post by:
Can someone help me with the following code? I need help knowing if we can attach files to the code below. If so, how? Private Sub Command6_Click() Dim subject As String, Body As String, Email As String Email = subject = Body = & Chr$(13) & & Chr$(13) & & Chr$(13) & DoCmd.SendObject , "Send an email", acForm, Email, , , subject, Body, False
4
2476
by: zamb | last post by:
am trying to do php mailing list but i have failed to attach files to it so that i can be able to send them as attachments with the message of the mail just like yahoo does. and my script for sending mail is not working properly please help me out.
0
9714
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6866
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5534
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.