|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
htmlinputfile - acceptHi
I saw an example that we can limit file selection type to image only with accept="image/*", but how do I limit the selection to only 1. comma separated file (.csv) 2. text file (.txt) please?! TIA -- Is this a lie or what, even the "image/*" would not work?! Has anyone ever
get this working? Show quoteHide quote <dl> wrote in message news:uucZQJWaFHA.3572@TK2MSFTNGP12.phx.gbl... > Hi > I saw an example that we can limit file selection type to image only with > accept="image/*", but how do I limit the selection to only > 1. comma separated file (.csv) > 2. text file (.txt) > > please?! > > TIA > > -- > > > just set the selection type to image AND check in ur code 2
Show quoteHide quote <dl> schreef in bericht news:uucZQJWaFHA.3572@TK2MSFTNGP12.phx.gbl... > Hi > I saw an example that we can limit file selection type to image only with > accept="image/*", but how do I limit the selection to only > 1. comma separated file (.csv) > 2. text file (.txt) > > please?! > > TIA > > -- > > > Any chance for these two types though
1. comma separated file (.csv) 2. text file (.txt) TIA Show quoteHide quote "Martin" <mlkloptn***@kanweghccnet.nl> wrote in message news:uR6ArLhaFHA.2496@TK2MSFTNGP14.phx.gbl... > just set the selection type to image AND check in ur code 2 > > <dl> schreef in bericht news:uucZQJWaFHA.3572@TK2MSFTNGP12.phx.gbl... > > Hi > > I saw an example that we can limit file selection type to image only with > > accept="image/*", but how do I limit the selection to only > > 1. comma separated file (.csv) > > 2. text file (.txt) > > > > please?! > > > > TIA > > > > -- > > > > > > > >
Show quote
Hide quote
<dl> wrote in message news:%23bsSdQhaFHA.2884@tk2msftngp13.phx.gbl... You could try:> Any chance for these two types though > 1. comma separated file (.csv) > 2. text file (.txt) > TIA > > "Martin" <mlkloptn***@kanweghccnet.nl> wrote in message > news:uR6ArLhaFHA.2496@TK2MSFTNGP14.phx.gbl... >> just set the selection type to image AND check in ur code 2 >> >> <dl> schreef in bericht news:uucZQJWaFHA.3572@TK2MSFTNGP12.phx.gbl... >> > Hi >> > I saw an example that we can limit file selection type to image only > with >> > accept="image/*", but how do I limit the selection to only >> > 1. comma separated file (.csv) >> > 2. text file (.txt) >> > >> > please?! >> > >> > TIA >> > >> > -- accept="text/csv,text/plain" This should allow only csv and plain-text files to be uploaded (IE: No binary files).... HTH, Mythran Ever get this to work? I'm having the same issue.
image/* doesn't seem to do anything. And I don't understand what is meant by "just set the selection type to image AND check in ur code " -- bugmenot ------------------------------------------------------------------------ Posted via http://www.mcse.ms ------------------------------------------------------------------------ View this thread: http://www.mcse.ms/message1656124.html
Mystery ASP.NET Error
ImageButton bug AddHandler doesn't seem to work. Blinking Controls Help, DropDown Web Control not Retuning "SelectedValue" CUSTOMVALIDATOR works but page goes on on FALSE "Google Suggests" and the AJAX .NET Wrapper? CustomValidator VALIDA pero NO FUNCIONA dataformatstring for dates in datagrid Dyamically add user control, along with properties? |
|||||||||||||||||||||||