View Full Version : FileField Properties & Saving
01-30-2005, 02:17 PM
I had a question regarding setting limitations and properties on he FileField HTML input. I want to limit the browser to certain file types [property File of Types not All Files (*.*)].
Current HTML Code:
<INPUT id="fileUpdate" type="file" runat="server">
At the same time, how do you save the file selected to a specific folder on the server pc (using the same file name)? Is there an EVENT I can hook the SAVE AS to?
01-30-2005, 03:19 PM
For the first question, something like this:
"accept can be used when type is set to file to specify which file-types should be accepted. This is a comma-separated list of MIME types."
01-30-2005, 07:29 PM
Not sure what you mean, in the HTML section after Type add a list of extensions? Can you please provide an example. Thanks,
01-30-2005, 07:48 PM
I have this info form a html reference, I don't use it myself. But I should try:
<input type="file" accept="doc,jpg,gif"
01-31-2005, 01:18 AM
Is it possible we are using different ASP or HTML versions? Because I do not have the "accept" method when loading the HTML tags. If I put it it still runs but doesn't work (still all file types *.*).
01-31-2005, 02:20 AM
The information from the list can be used to filter out nonconforming files when prompting a user to select files to be sent to the server using the <INPUT> element with type="file".
There is no functionality implemented for this property unless defined by the author.
03-27-2008, 07:30 PM
wrath: XHTML is now what you should try to use...basically it will ensure compatibility across all platforms that view html...
it's really mostly about closing all tags <p>text</p> for example:)
Add My Website
01-17-2010, 06:19 PM
It is vitally important, no matter what medium we are talking about these days - whether Mobile or web, to use good css and html markup. It's pretty much the only way you should be doing things.
CSS Web Design Gallery (http://www.addmywebsite.co.uk)
Check out my own site which lists valid css and xhtml websites from around the web and then take a look at the 'Source' and you'll see how style and content are completely seperate on all of them!
Once you get in to the swing of it, you'll soon see how easy CSS as a language is to learn because it uses a very simple syntax. When you use it enough, you'll soon see that you will copy a lot across to what ever project you're working on and then edit it to fit. Also, once you've made a few mistakes and learnt the solutions, you'll never forget....like riding a bike really!
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.