Some HCMO Five attributes are super useful for file validation. …You can tell a browser to accept only certain files by using the accept …attribute and passing it some MIME types. So what is a MIME type? …MIME stands for Multipurpose Internet Mail Extensions. …It started out as a format for allowing email attachments in the SNTP protocol, …but it has grown way beyond that and is used heavily all over the web. …And MIME specification starts out with a main type like image or video, followed …by a sub type like JPG or PNG. The accept attribute normally prevents a …browser from choosing files that don't meet our criteria.…
So let's see how that works. Here's a form that's asking the user to …upload a file. So I'm going to hit this choose file button. …Here I have a bunch of files with different types. …So notice that I can choose any of the types that I want. …I'm going to hit cancel, and I'll go into the code for this page, and in the file …input type, I'm going to add an except attribute. …
- Understanding forms
- Adding required fields and placeholders
- Accepting multiple entries
- Limiting uploads
- Handling focus changes
- Validating with regular expressions
- Working with older browsers
- Building jQuery validation
- Using server-side validation
- Sanitizing form input
- Uploading files
- Sending form data to a database
Skill Level Intermediate
Managing and Analyzing Data in Excel 2010with Dennis Taylor1h 32m Intermediate
1. Getting Started
2. Validating with HTML5
4. jQuery Form Validation
Understanding jQuery3m 47s
5. Working with PHP
6. Processing Form Data
Next steps1m 17s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.