Drag & Drop or Browse - File Upload Tutorial using HTML CSS and JavaScript

preview_player
Показать описание
Using drag and drop we can upload files easily over the internet. Browse files was the old feature and exits everywhere. Today we are going to learn how to create drag & drop feature as well as browse files to upload files.

Don't forget to Like, Share, Comment and Subscribe to my channel for more javascript projects.

GET Source Code :

Timestamps :
00:00 Intro & Demo
02:34 Project Setup
04:37 Adding HTML
06:22 Adding CSS
13:57 Adding JavaScript
35:25 End

Our Previous Videos :
➔ Twitter Clone using HTML and CSS - Beginners Tutorial

➔ Responsive Netflix Clone using HTML and CSS - Beginners Tutorial

➔ Instagram Reels Clone using HTML & CSS - Beginners Tutorial

➔ TikTok Clone With HTML and CSS - Beginners Tutorial

➔ Responsive Facebook Clone using HTML & CSS - Beginners Tutorial

You can find me on:
Рекомендации по теме
Комментарии
Автор

21:55 I think you should use dragstart instead of dragover to change inner text of dragText, since dragover runs multiple times while dragstart runs only once. Great vid ❣

bimalpandey
Автор

thank you for the tutorial, is there a template for this so I can edit it. I am still new to this. Thank you!

Bley_
Автор

Am I missing something? You didn't bind dragged file to input element.

anlozselgin
Автор

Thanks for the tutorial, really well made!

blackster
Автор

hello, I am having problems with the last part, my the "input.click();" is not opening the file explorer, I have tried multiple ways and still no success. anyone having the same issue?

lightbeatproduction
Автор

How to change image after you have selected image?

bagastarangga
Автор

great content man it was a lifesaver. Thank you.

rithwikkrishna.
Автор

What if I want to display filename after drag and drop

vvsyashaswini
Автор

your videos are amazing! Can you please do JS videos as a follow on to your twitter/google/fb html and css videos pls

AmirAli-jkkr
Автор

in the drag and drop, when i drop the image it doesnt show and give me error fileURL not found
can anyone help?

Jasmine-zgox
Автор

hey man. i need some help with the script

ShotYoNer
Автор

Can you give me some advice on how to do drag and drop with multiple files, thank you..

chanapapantong
Автор

why i have problem here:
input.addEventListener('change', function () {

ShotYoNer
Автор

Bro plz make tutorials of making websites using Html, Css and JavaScript..That would be helpful for us...your teaching style is very understandable...thank you..

Note - Voice Overs only..its a humble request.

tauqeerahmed
Автор

what if i use file format like docx, pdf and zip, not an image. how can i do that?

semicolon
Автор

can you please share the source code for free? I need it for a school project

ashleyalt
Автор

This vid is realy good but can you make other video like this to integrate the js to the php to save the image to local folder and store the url to the mysql database 👍.

_delfinofahrezaakbar
Автор

Where the file will go from the drop box? I mean to say what is the upload path?

sbmahapatra
Автор

You did a great job. Thank you so much. 💙💙🙏

CodeWithClinton
Автор

How can we drag and drop pdfs as well and rather than showing the image and just show file name and type.

ClipHypeBuzzMoments