473,414 Members | 1,772 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

file upload with accept

Hi
I understand we can limit the file type / extension the user can choose from
in doing file upload with the "accept" property, but what are the values for
csv and text file? (the example is only "image/*")!

TIA

--

Nov 19 '05 #1
3 2198
..CSV: application/vnd.excel
..TXT: text/plain

You can always look for the values using "regedit.exe" and search through
"HKEY_CLASS_ROOT\(file ext)\Content Type".

<dl> 撰寫於郵件新聞:Oy**************@TK2MSFTNGP15.phx.g bl...
Hi
I understand we can limit the file type / extension the user can choose
from
in doing file upload with the "accept" property, but what are the values
for
csv and text file? (the example is only "image/*")!

TIA

--

Nov 19 '05 #2
I do not see the "Content Type" for .csv (I am using win2000p)

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
.CSV: application/vnd.excel
.TXT: text/plain

You can always look for the values using "regedit.exe" and search through
"HKEY_CLASS_ROOT\(file ext)\Content Type".

<dl> 撰寫於郵件新聞:Oy**************@TK2MSFTNGP15.phx.g bl...
Hi
I understand we can limit the file type / extension the user can choose
from
in doing file upload with the "accept" property, but what are the values
for
csv and text file? (the example is only "image/*")!

TIA

--


Nov 19 '05 #3
I see... this entry has been added by MS Excel.
If your PC does not have MSOffice installed, you may not be able to see it.

<dl> 撰寫於郵件新聞:uA**************@tk2msftngp13.phx.g bl...
I do not see the "Content Type" for .csv (I am using win2000p)

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:OF**************@TK2MSFTNGP10.phx.gbl...
.CSV: application/vnd.excel
.TXT: text/plain

You can always look for the values using "regedit.exe" and search through
"HKEY_CLASS_ROOT\(file ext)\Content Type".

<dl> 撰寫於郵件新聞:Oy**************@TK2MSFTNGP15.phx.g bl...
> Hi
> I understand we can limit the file type / extension the user can choose
> from
> in doing file upload with the "accept" property, but what are the
> values
> for
> csv and text file? (the example is only "image/*")!
>
> TIA
>
> --
>
>
>



Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: moondaddy | last post by:
I have a simple webform where a user can upload images by using an input element of type "file". In the a button's click event in the codebehind is this code which saves the file to the server. ...
10
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was...
5
by: Jon Natwick | last post by:
I would like to limit the file types that users can upload. <input id="tbFileUpload" type="file" runat="server"> This setting looks like it should it work, but it's not working for me. ...
6
by: Paul | last post by:
Hi there, When adding a "File Field" HTML control to an aspx page to facilitate file uploading, the following occurs: 1. You select a file that is larger than the allowed size limit. 2. Once...
4
by: jf li | last post by:
I have a Asp.net web application and a Asp.net Web service application. The Web application is using HtmlInputFile to get a 50M size of file selected by end user, read the data of this file and...
1
by: John Wolff | last post by:
Im trying to upload a file to a Web Service. I have to submit the file using a standard HTML form with the <input type=file /tag. Ultimately, we are submitting the file from a Flash 8...
3
acoder
by: acoder | last post by:
How to Upload a File in Coldfusion Use the cffile tag for uploading files to the server. Note that allowing people to upload files is fraught with danger and only trusted users should be...
1
by: jimmyg123 | last post by:
Hey everyone, I've just written some basic code to upload a pdf file from a browser to a server. It works fine when I use Firefox, however when I use IE after clicking the upload button it returns...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
7
Curtis Rutland
by: Curtis Rutland | last post by:
Building A Silverlight (2.0) Multi-File Uploader All source code is C#. VB.NET source is coming soon. Note: This project requires Visual Studio 2008 SP1 or Visual Web Developer 2008 SP1 and...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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...

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.