Answers for "input type image upload"

1

html upload image

<input type="file" accept="image/*" />
Posted by: Guest on December-03-2020
1

accept vedio pdf files upload html

<input type="file" accept=" video/*" />
Posted by: Guest on February-19-2020
0

html input file upload image for profile picture

#imageUpload
{
    display: none;
}

#profileImage
{
    cursor: pointer;
}

#profile-container {
    width: 150px;
    height: 150px;
    overflow: hidden;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    border-radius: 50%;
}

#profile-container img {
    width: 150px;
    height: 150px;
}
Posted by: Guest on September-30-2020
0

html input file upload image for profile picture

$("#profileImage").click(function(e) {
    $("#imageUpload").click();
});

function fasterPreview( uploader ) {
    if ( uploader.files && uploader.files[0] ){
          $('#profileImage').attr('src', 
             window.URL.createObjectURL(uploader.files[0]) );
    }
}

$("#imageUpload").change(function(){
    fasterPreview( this );
});
Posted by: Guest on July-08-2020

Browse Popular Code Answers by Language