No video

Download and Upload files using HTML & PHP

  Рет қаралды 116,273

Adnan Afzal

Adnan Afzal

7 жыл бұрын

Download and Upload files using HTML & PHP
FOR MAC USERS
make sure the uploads folder is read & writable. it is read only by default because many xampp folders are defaulted that way. Right click folder, click get info, unlock, change to read and write, now it should work.
Source files:
adnan-tech.com...

Пікірлер: 297
@whatnowZA
@whatnowZA 4 жыл бұрын
I've been looking for this for almost two weeks now :)
@nidhishinde6420
@nidhishinde6420 Жыл бұрын
i have been looking for this since so long didn't find a perfect video except this!!!😭❤️
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
Glad to hear that. Thanks.
@joseluisbeltramone599
@joseluisbeltramone599 5 жыл бұрын
Good tutorial. Right to the point!. Thanks a lot.
@janmichaelbesinga3867
@janmichaelbesinga3867 5 жыл бұрын
works like magic. two thumbs up*
@MGzockt
@MGzockt Жыл бұрын
love your outro
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
Thanks.
@phenomgaming3152
@phenomgaming3152 5 жыл бұрын
Thumbs up dude u made it so simple
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You're welcome. Make sure you subscribe for more helpful videos.
@macahilosclarkq.1672
@macahilosclarkq.1672 3 жыл бұрын
Thank you this helps a lot
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome.
@macahilosclarkq.1672
@macahilosclarkq.1672 3 жыл бұрын
@@AdnanAfzal565 bro its saying php warning: File upload error - unable to create a temporary file in uknown on line 0
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
@@macahilosclarkq.1672 Check if you have any error in files object, like following: print_r($_FILES["video"]["error"]);
@davidbermudez7704
@davidbermudez7704 5 жыл бұрын
Just what I needed for my testing site thank you so much
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Glad I helped.
@moanxion9102
@moanxion9102 5 жыл бұрын
I hope there are more You tubers like u
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Thanks. Great to hear. Keep sharing to help me reach more people.
@betelhemtesfaye7838
@betelhemtesfaye7838 4 жыл бұрын
It's the precise and clean!!! Thanks Adnan!
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
You're welcome (Y)
@syedazmat4032
@syedazmat4032 5 жыл бұрын
thats what i was looking for...Thank you
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You're welcome
@Wabwire-Ronald
@Wabwire-Ronald 3 жыл бұрын
This was very important for me. I had searched how to do this fr a long time. Thank you
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You’re welcome.
@Wabwire-Ronald
@Wabwire-Ronald 3 жыл бұрын
if i could now know how i can make the displayed documents in order from the most recent to the least, it will be so good.
@Wabwire-Ronald
@Wabwire-Ronald 3 жыл бұрын
and also if i want to have another option of viewing the document instead of downloading it
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
For ordering, you can save the filename as timestamp and display in descending order. Display image and video is simple, for pdf you have to use header content-type: application/pdf
@nsabimanaemmanuel5416
@nsabimanaemmanuel5416 6 жыл бұрын
What amazing is this, you're the best,wawo special thanks i have been looking for this upload and download in php for a week and you have helped me.Once again thank you,very brief and specific.Please i would love to see when you also include error and extensions and file sizes for memory or space purposes.be blessed!!!!!!
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Sure. Will do that too. Thanks.
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
@Jake Propst Can you explain what error you are facing ?
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
@Jake Propst No problem. Everyone was once a newbie. You can check your browser console. There must be an error in your Javascript. Right click in your browser empty space, go to "Inspect Element" then in "Console" tab.
@aimannatasha4629
@aimannatasha4629 6 жыл бұрын
Thank you very much for this coding tutorial :D
@hardyproceedings281
@hardyproceedings281 2 жыл бұрын
That's what I call a man Job! Right to the point...Good job buddy!
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
Thanks.
@farmtech-1211
@farmtech-1211 4 жыл бұрын
Thanks! This is very useful and simple
@dreamc1626
@dreamc1626 2 жыл бұрын
Thanks this is what i looking for
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
You are welcome.
@rupesh_kumar_mistri
@rupesh_kumar_mistri 3 жыл бұрын
Thank You For sharing your source code it done its work
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome.
@smartwolf9045
@smartwolf9045 4 жыл бұрын
Very clear, thanks a lot man you made my day
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Glad to hear that!
@DamonMedekMusic
@DamonMedekMusic 3 жыл бұрын
FOR MAC USERS make sure the uploads folder is read & writable. it is read only by default because many xampp folders are defaulted that way. Right click folder, click get info, unlock, change to read and write, now it should work. Thats why windows users are saying success while mac users are pulling their hair out.
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Thanks for sharing.
@MuhammadAbdullahMirza
@MuhammadAbdullahMirza 5 жыл бұрын
Very Good & simple video
@g-enterprises973
@g-enterprises973 5 жыл бұрын
Hi. I tried everything that the video said, and i also copied the sample codes, but i was only able to select the file. The upload option did not work. Can some one please help me figure out what is wrong? Thanks in advance.
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
What error are you seeing ?
@mahmoudnasr7104
@mahmoudnasr7104 4 жыл бұрын
It's very simple ... thanks a lot
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
You’re welcome.
@myintthuaung1482
@myintthuaung1482 4 жыл бұрын
Thank you so much, its really helpful.
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Glad it was helpful!
@marcostark8926
@marcostark8926 5 жыл бұрын
Thank you for this tutorial :)
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You're welcome.
@andyjohn907
@andyjohn907 4 жыл бұрын
thanks you really helped me..
@andyjohn907
@andyjohn907 4 жыл бұрын
Yeah...sure...
@hajimohammed968
@hajimohammed968 6 жыл бұрын
Legit life saver!!!
@KatombelaHaggai
@KatombelaHaggai 10 ай бұрын
On point 🙌🙌🙏
@AdnanAfzal565
@AdnanAfzal565 10 ай бұрын
Thanks.
@askjdaksjdn
@askjdaksjdn 2 жыл бұрын
is there anyway to create a new page to download and not just the same one with the download button ?
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
Do you have any design so I can get the idea ?
@CuriousTV20
@CuriousTV20 2 жыл бұрын
Very useful thank u♥
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
You are welcome.
@priyankaa9322
@priyankaa9322 2 жыл бұрын
you r amazing. thank you
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
You are welcome.
@emraneklaai1808
@emraneklaai1808 3 жыл бұрын
thank you sir ! you very helping me !
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome. Glad to hear that.
@deepujojo4914
@deepujojo4914 3 жыл бұрын
Awesome . Thank you
@zinkyawmoe5725
@zinkyawmoe5725 5 жыл бұрын
helpful tutorial
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Thanks.
@thedevelopers3811
@thedevelopers3811 5 жыл бұрын
good , very helpfull
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Thanks.
@shrinjoysaha
@shrinjoysaha 5 жыл бұрын
Great video
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Thanks. Keep sharing please.
@islamersure9415
@islamersure9415 3 жыл бұрын
helpfull.thanks
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You're welcome.
@jonaspalmiano7211
@jonaspalmiano7211 4 жыл бұрын
THANK YOU :)
@pulidivya5863
@pulidivya5863 3 жыл бұрын
Thankyou so much
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome.
@shreepadsarmalkar4075
@shreepadsarmalkar4075 6 жыл бұрын
great work bhai
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
thanks
@KrzysiekTannenberg
@KrzysiekTannenberg 4 жыл бұрын
Hello ! could it be changed to make each file have a checkbox and after selecting it could be deleted? also when uploading add the function that when the file has the same name and size it would display "the file already exists" ?
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Yes, for deleting you can use "unlink()" function and for checking duplicate file name, you can use "file_exists()" function.
@emanaj8119
@emanaj8119 4 ай бұрын
Thank you! What if i need to put it the links at table, (# , title, download link) ? Plz need script or video like this
@mazharnadeem8358
@mazharnadeem8358 4 жыл бұрын
amazing
@isaacattaampofosenior3081
@isaacattaampofosenior3081 4 жыл бұрын
Thank you very much
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
You are welcome
@haiderabbas6407
@haiderabbas6407 2 жыл бұрын
Thank you, but I had trouble downloading a file or an image that doesn't do what I do.
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
Which type of file you are trying to download ?
@ujjawalsingh3350
@ujjawalsingh3350 3 жыл бұрын
Thanks a lot
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome.
@pondybook7622
@pondybook7622 5 жыл бұрын
Thanks bro,
@arjunraj-k
@arjunraj-k 6 жыл бұрын
why the index $a starts at 2? ($a=2 in for loop)
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
because the first 2 indices are for "." current directory and ".." previous directory
@javar1987
@javar1987 3 жыл бұрын
Super nice
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Thanks.
@BB-fv7ib
@BB-fv7ib 5 жыл бұрын
1) Can other computers access it just writing the local host path as long as your xamp server is on on your computer? 2)Do you know how to restrict access around a wifi, meaning people can access that page if they are connected to that specific wifi
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
No. They can only access if they know your ipv4 address which can be get only from ipconfig /all command.
@Artmoreralph
@Artmoreralph 5 жыл бұрын
Sir whenever i click upload it doesmt do anything. the file is not there
@Artmoreralph
@Artmoreralph 5 жыл бұрын
Never mind hahaha i fixed it
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Great :)
@bonguthandokhumalo7552
@bonguthandokhumalo7552 Жыл бұрын
Thank you
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
You are welcome.
@albertganteng7261
@albertganteng7261 3 жыл бұрын
Thank You
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You're welcome
@janmichaelbesinga3867
@janmichaelbesinga3867 5 жыл бұрын
but i think it doesnt upload files more than 2mb
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You can always change the maximum upload file size from file "php.ini". You will see 2 directives in that file: upload_max_filesize and post_max_size
@janmichaelbesinga3867
@janmichaelbesinga3867 5 жыл бұрын
@@AdnanAfzal565 how sir?
@janmichaelbesinga3867
@janmichaelbesinga3867 5 жыл бұрын
@@AdnanAfzal565 got it already.. thanks :)
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
@@janmichaelbesinga3867 Great, let me know if you have any question.
@area0312
@area0312 Жыл бұрын
Ty :)
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
You are welcome.
@openarenaShow2012
@openarenaShow2012 5 жыл бұрын
thank you so much
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You're welcome.
@dishatiwari4994
@dishatiwari4994 3 жыл бұрын
Hi Adnan I tried the way you showed in the video & its working fine but I'm not able to download txt and image files........can you suggest a code that I can add to make it work for image & txt files as well?
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
The code should be same for all files. Make sure the path and file name is correct.
@hammadahmad7293
@hammadahmad7293 6 жыл бұрын
Helpfull (Y)
@jokerry9627
@jokerry9627 6 жыл бұрын
when I click on the file ... it downloads the file with error: failed ... no file.
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
It is because you have selected the wrong file path, please double check your spellings.
@majdoubwided6666
@majdoubwided6666 6 жыл бұрын
i have the same error, help please
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You need to double check your spellings. It says that the file is not found on server.
@everythingfree4643
@everythingfree4643 4 жыл бұрын
register is not done verifying my gmail
@nilanthys5090
@nilanthys5090 6 жыл бұрын
i did everything like in the vid,but when i click on the upload button, nothing happens. Can you help?
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Can you send your code here ?
@nilanthys5090
@nilanthys5090 6 жыл бұрын
INDEX.php :
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Your tag is not properly closed. Use this:
@nilanthys5090
@nilanthys5090 6 жыл бұрын
Thank you,but it still dont work. It does not even show the uploaded files,and i cant find them in the uploads folder neither. :/
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Check your directory permissions, it should be 777.
@michaelangeloserban4859
@michaelangeloserban4859 4 жыл бұрын
hi sir..im using datatables..i want to the download the specific file in my upload folder how can i do that..please help me..thank you
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
If you follow this tutorial completely, you will be able to download files.
@user-ed7pg9ut9c
@user-ed7pg9ut9c 3 жыл бұрын
If I create a system like this in pc ,can I download the file with phone ?
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Yes.
@user-dz4qq7gv1w
@user-dz4qq7gv1w 4 жыл бұрын
tp gimana cara kita linkkan agar file dapat di upload/download oleh setiap user tanpa di tampilkan ke user lain. sekali lagi terima kasih..!
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Jika Anda memiliki sistem login maka Anda dapat menetapkan suatu kondisi berdasarkan ID pengguna.
@akashsrivastava7883
@akashsrivastava7883 4 жыл бұрын
How to save the uploaded file in the uploads folder with a specific name?
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
In your move_uploaded_file function, set second parameter to the file name of your choice. For example, move_uploaded_file($_FILES["file"]["tmp_name"], "uploads/My-file.png");
@akashsrivastava7883
@akashsrivastava7883 4 жыл бұрын
@@AdnanAfzal565 thank you so much :)
@rufinohernandez1636
@rufinohernandez1636 5 жыл бұрын
Funciona correctamente, necesito almacenar la ruta en una base de datos (MySQL)subiendo archivos .doc, .pdf con opciones para ver y descargar(Bueno eso la tiene en este ejemplo)...Alguna sugerencia !!
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
I didn't understand that. But I can tell that you are having problem in your MySQL database and may be unable to download or upload .pdf or .doc file ?
@reskyantopaledangmailcom
@reskyantopaledangmailcom 3 жыл бұрын
good tutorial
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Thanks.
@asikurbd
@asikurbd 4 жыл бұрын
3 mb up file size. cannot be uploaded.. but why??
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
upload_max_filesize = 2M post_max_size = 2M Search these values in php.ini and update them to 10M or higher.
@novelchandra8329
@novelchandra8329 4 жыл бұрын
please i need your favor to this issue.. i download a excel file from local server, then i edit the file, then i upload it, i need to know is my file updated or not so i download the file again.. the system should've overwrite it but it's not.. but in the server PC it's updated.. tell me how to update the download link
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
When you are uploading the file, append the timestamp in it. Like this: move_uploaded_file($_FILES["file"]["tmp_name"], $_FILES["file"]["name"] . "-" . time());
@novelchandra8329
@novelchandra8329 4 жыл бұрын
@@AdnanAfzal565 then it will add a new file instead overwrite it.. I need to update that download link.. thank you for your kindly reply
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
@@novelchandra8329 if the file name is same, then it will be updated.
@novelchandra8329
@novelchandra8329 4 жыл бұрын
@@AdnanAfzal565 but in the code you've given to me it would be filename-time right??cmiiw
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Yes.
@jaedon01
@jaedon01 3 жыл бұрын
nice one bro but how can i integrate it to the social site so if a user send message , friend request, group request and others the other will receive the sound notifications on his or her end? pls bro
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
For notification sound, you can follow this: kzfaq.info/get/bejne/bdN7i6iar9vDe5s.html It is HTML & Javascript, social network project is created in HTML & JS too, so you can integrate that with little work.
@TechNo1geek
@TechNo1geek 3 жыл бұрын
I don't know how to get the localhost thingy
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You can simply download XAMPP, WAMP or MAMP for localhost.
@ss11235
@ss11235 5 жыл бұрын
I created the files just like you said and when i open it google chrome just shows me the code i typed and nothing else. I am new to coding and i am doing this in order to set-up a file share website on our IIS server for lab use. Your application is exactly what i am looking for.
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You need to work in XAMPP htdocs
@ss11235
@ss11235 5 жыл бұрын
@@AdnanAfzal565 Many thanks for the reply. I was using IIS and reached to a point where it would load the index.php page. When i upload file, i get error "This page isn’t working; 10.0.0.99 is currently unable to handle this request. ; HTTP ERROR 500" I will do some research about XAMPP and update the thread.
@ss11235
@ss11235 5 жыл бұрын
​@@AdnanAfzal565 I installed XAMPP on the server and it works beautifully. Thanks for the help. Just what we needed here.
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
@@ss11235 Yes, search for php.ini file in XAMPP/php folder. And search for max_upload_filesize
@preethaparthan531
@preethaparthan531 5 жыл бұрын
@@AdnanAfzal565 Great info Can we add a delete file option next to the download links? Can you help with the code please.
@djdamo6854
@djdamo6854 6 жыл бұрын
pls code
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Here it is: adnan-tech.com/tutorial/upload-download-and-delete-files-php
@hdmirswb
@hdmirswb 3 жыл бұрын
Can I also use a button instead of the
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Yes, to download files you can use an anchor tag.
@nivedisinghal8146
@nivedisinghal8146 4 жыл бұрын
The link automatically downloads the file rather than opening it...help
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Yes, this tutorial is about downloading the file. What type of file you want to view in the browser (pdf, excel etc.) ?
@nivedisinghal8146
@nivedisinghal8146 4 жыл бұрын
Adnan Afzal i want every file type to get opened...i tried this pdf is directly downloading..docx and jpeg are opeing
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
There is no general method that will display any kind of file in the browser. You have to put conditions on each type of file and call functions separately. For example, to display the PDF file, you can follow: adnan-tech.com/pdf-view-in-browser-and-export-as-file-php/ To display Excel file, you can follow: adnan-tech.com/create-and-read-excel-sheets-with-styles-and-dynamic-data-php-mysql/
@nivedisinghal8146
@nivedisinghal8146 4 жыл бұрын
Adnan Afzal Okay thanks for the help
@kerboplaytv8744
@kerboplaytv8744 5 жыл бұрын
wow that into = like
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
I got it from here: www.fiverr.com/rizwanafzal1988/do-intro-video-for-youtube-of-caveman-breaking-stone?ref_ctx_id=11e71513-b629-48f5-a269-fc667f45e7dd
@gnaneshgn8341
@gnaneshgn8341 5 жыл бұрын
im new to php...and im have written the code as in the video..but even though im getting an error like Object not found after clicking upload..pls help...!!!!!!
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
It is because you have an error in file name spellings. Double check if your file name is same as in your code.
@gnaneshgn8341
@gnaneshgn8341 5 жыл бұрын
ive checked....everything is correct .im getting error in "upload.php " and also can u please explain "move_uploaded_file($file["tmp_name"], "upload/".$file["name"]);" im confusedwith that...
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
@@gnaneshgn8341 It will save the file in server directory. Make sure you have a folder named "upload"
@techprogramming9827
@techprogramming9827 Жыл бұрын
did this file goes into the database?
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
No. It will only be saved physically in uploads folder.
@ananthucsh
@ananthucsh Жыл бұрын
can you please send the source code
@user-qi3lv5og4v
@user-qi3lv5og4v 5 жыл бұрын
Can someone tell me if i can make it online with free web hosting sites??
@williamchangco833
@williamchangco833 3 жыл бұрын
I love you
@twerwaneholisternersclub4216
@twerwaneholisternersclub4216 4 жыл бұрын
thanks for this but my issue is i have a registration form but i want it to upload multiple files. any help
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Yes, you can upload multiple files by following this: kzfaq.info/get/bejne/m651d61z0JnNlWQ.html
@takzobye
@takzobye 4 жыл бұрын
How to upload a large file
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
You need to enable following 4 properties in your "php.ini" file located in "xampp/php/php.ini": upload_max_filesize - The maximum allowed upload file size. post_max_size - The maximum allowed POST data size. max_input_time - Maximum allowed input time. max_execution_time - The maximum allowed time the scripts are allowed to run.
@takzobye
@takzobye 4 жыл бұрын
@@AdnanAfzal565 thanks
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
@@takzobye Welcome. Keep sharing.
@takzobye
@takzobye 4 жыл бұрын
@@AdnanAfzal565 I dont have post_max_size max_execution_time max_input_time I only have upload_max_filesize
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
@@takzobye That's okay, it depends on server and PHP version. Try restarting XAMPP and it will work.
@soman5754
@soman5754 5 жыл бұрын
where does the file upload to? and can i download even if its not on my computer?
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Yes.
@techprogramming9827
@techprogramming9827 Жыл бұрын
so how i can uploaded into mysql database?
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
You can save the path using following mysql query: INSERT INTO uploads(path) VALUES ($path)
@techprogramming9827
@techprogramming9827 Жыл бұрын
@@AdnanAfzal565 i already do this but its not working when i submit it will not go into the database
@techprogramming9827
@techprogramming9827 Жыл бұрын
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
Make sure you have correct database, table and column names.
@zerocruch
@zerocruch 6 жыл бұрын
Please can you put the download file i need it
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Sure. I will soon upload it on some git repository and will share link with you.
@wodosharlatan
@wodosharlatan Жыл бұрын
Is there a way to chech file size and than hande the info?
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
Yes. You can use $_FILES["file"]["size"]. It will return the file size in bytes.
@wodosharlatan
@wodosharlatan Жыл бұрын
@@AdnanAfzal565 thx
@AdnanAfzal565
@AdnanAfzal565 Жыл бұрын
You are welcome.
@adamhaglund2223
@adamhaglund2223 5 жыл бұрын
How do I add a delete button that deletes the file I want to rid of?
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
You can call built-in PHP function: unlink("path_of_file"); to delete the file.
@adamhaglund2223
@adamhaglund2223 5 жыл бұрын
@@AdnanAfzal565 Ok, but how do I "grab" the full name from the script and get it into the unlink("full_name.here")?
@abhithakur5403
@abhithakur5403 3 жыл бұрын
Hello, how can i upload in sketchware
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You need to develop a new app for this, sketchwsre is quite different. You can follow this: adnan-tech.com/profile-update-with-picture-android-java-php-and-mysql/
@ss11235
@ss11235 5 жыл бұрын
Can you please help with the code for a banner on top of index.php page
@AdnanAfzal565
@AdnanAfzal565 5 жыл бұрын
Yes.
@mukrihome
@mukrihome 4 жыл бұрын
whenever i am downloading its say failed no file
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
Make sure the path of file in server is correct. You need to give full file name including the extension.
@_etg
@_etg 3 жыл бұрын
Hey do you know how to put images and description for the uploaded files?
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Yes, just create another column in database with description of images.
@_etg
@_etg 3 жыл бұрын
Also thanks for this video it helped me
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You are welcome.
@saiqajutt5550
@saiqajutt5550 3 жыл бұрын
not working ..
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
What error are you seeing ?
@veenisazta1582
@veenisazta1582 6 жыл бұрын
How we can download files from file zila to local server ?
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
You can right click on file you want to download and click "export to local"
@veenisazta1582
@veenisazta1582 6 жыл бұрын
Adnan Afzal I want to download complete folder from file zila (sftp protocol) to local server using php
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Okay. I will shortly provide you tutorial for that too.
@veenisazta1582
@veenisazta1582 6 жыл бұрын
Adnan Afzal thank u ...
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
here is your requested tutorial: kzfaq.info/get/bejne/b5eXn66BsNbTl3k.html please let me know if you have any issues
@updatebd6977
@updatebd6977 3 жыл бұрын
Nice code
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
Thanks.
@fmfeldsalat8744
@fmfeldsalat8744 3 жыл бұрын
Thanks This is a very usefull tutorial but i have a question how can i run it on a server becouse i want to upload a file on my pc and download it on a nother pc. it would be very nice if somone can help me. (sorry for my bad english :) )
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You can simply upload this code to a hosting server. Upload the file from 1 PC. Access the web page from 2nd PC and download the file.
@Ember_magyar
@Ember_magyar 2 жыл бұрын
it working in html file?
@AdnanAfzal565
@AdnanAfzal565 2 жыл бұрын
No, you have to use php file.
@jokerry9627
@jokerry9627 6 жыл бұрын
I used the upload.php in the end of the file, the last 2 lines, the code cannot download any file. Note: I used it to my website not for local host. upload file
@AdnanAfzal565
@AdnanAfzal565 6 жыл бұрын
Just print_r($files) and see the files returned.
@jokerry9627
@jokerry9627 6 жыл бұрын
Failed- No file
@jokerry9627
@jokerry9627 6 жыл бұрын
Failed - No File
@jokerry9627
@jokerry9627 6 жыл бұрын
outp put is : New Text Document (9).txt Array ( [0] => . [1] => .. [2] => New Text Document (9).txt so, when I click on the > its output is: Failed - No File
@chandrapratama7644
@chandrapratama7644 3 жыл бұрын
Not use Database ??
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You mean you want to download the file saved in the database? And save the uploaded file path in the database?
@chandrapratama7644
@chandrapratama7644 3 жыл бұрын
@@AdnanAfzal565 yes I want to download and upload the save file in the mysql database, can you know your script can be used in the database ??
@AdnanAfzal565
@AdnanAfzal565 3 жыл бұрын
You can follow below tutorial to fetch and save data in database: kzfaq.info/get/bejne/pc-VabdprrzJfXU.html
@chandrapratama7644
@chandrapratama7644 3 жыл бұрын
@@AdnanAfzal565 oke tanks for to be information
@robertoaguiar6230
@robertoaguiar6230 4 жыл бұрын
Can I do that with just html?
@AdnanAfzal565
@AdnanAfzal565 4 жыл бұрын
You can do the download with HTML. But upload cannot be done with only HTML.
PHP File Upload and Download Script Project in MySQL
37:54
Coding Shiksha
Рет қаралды 32 М.
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 19 МЛН
The Giant sleep in the town 👹🛏️🏡
00:24
Construction Site
Рет қаралды 18 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 49 МЛН
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 48 МЛН
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
19:28
Dave Hollingworth
Рет қаралды 42 М.
PHP - Subscribe to Newsletter and send Bulk Emails using PHPMailer
11:24
Upload and Download file using PHP
15:35
raj lanjewar
Рет қаралды 34 М.
Upload and Download Files in PHP/PDO Tutorial
10:44
SourceCodester
Рет қаралды 9 М.
Upload Files in React - Typescript, Drag and Drop, & Form Examples
12:21
How to Upload Files with Flask Using Python
11:04
Arpan Neupane
Рет қаралды 70 М.
How to Insert Images to MySQL and Display Them Using PHP
14:19
Clever Techie
Рет қаралды 498 М.
Installing The Sonic Drive-In Operating System
36:26
Bringus Studios
Рет қаралды 408 М.
Login Form in HTML & CSS
11:07
Codehal
Рет қаралды 1,4 МЛН
Pool Bed Prank By My Grandpa 😂 #funny
00:47
SKITS
Рет қаралды 19 МЛН