TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rohan Ramani
NA
786
144.9k
How to Validate size and type of file when select?
Sep 17 2018 5:34 AM
Hi,
I want to select and add files only office files like word excel powerpoint, and pdf and images like jpeg, png, gif form the input.
And also the size should be max 20 mb.
<label
class
=
"btn btn-primary"
>
<input type=
"file"
id=
"btnAtch"
name=
"CollFiles"
multiple/>
</label>
In Script:
<script>
$(document).ready(
function
() {
$(
'#btnAtch'
).change(
function
() {
});
</script>
Don't know what have to do.. Please help
Reply
Answers (
1
)
Loop URL to download PDF file.
While executing the testcase in android studio