PHP Upload & Remove using Ajax Jquery
Вставка
- Опубліковано 19 вер 2024
- In this tutorial you can learn how to upload image without page refresh in php by using ajax with jquery and I have also show you how to remove that uploaded image from server using php without page refresh using Jquery with Ajax. Source Code - www.webslesson....
Thanks boss,you are completed my tiny admin backend for my website daily,thanks so much.I appreciate that
Your videos have helped me a lot keep up thw good work
It is our work dayo
wow I LOVE YOUR VIDEOS
Thanks for nice lesson.
why you use ' contentType :false,
processData :false ' ?
For those who are with problems to implement this solution
Should do the trick, nowdays you have to set enctype="multipart/form-data"
Tremindos sir g
I want the file to be uploaded immediately and do the AJAX. So how do I accomplished that way?
thanks for solution
Can you tell.me why you are using random name instead of real name of thta file logic behind? at #7:30
Notice: Only variables should be passed by reference in C:\xampp\htdocs\fileuploadjquery\upload.php why i am getting this notice?
bcoz I think you did like this end(explode(".",$filename));
instead of writing explode....... declare explode as variable and then
end($exet);
it is the correct way
thanks for helping me :) ...
Thank you Rezthu Maxsi for your kind words.
I recommend to you, I have problem in the select option. Like this .. if i choose ID 1 in select option. Automatic other input is already filled directly. Because already get directly from id 1... please masters helping m.. :'(
images are not previewing. original name is BetBit.jpg
new name is 55883.jpg but the img is not uplading and also not previewing why
Instead of uploading it is displaying ';}} else {echo'}} else {echo ";}? >. Please help
love u : )
how can the image's file be imported on database?
It's not a good idea to directly put the image in to the database. What you could do, add a field "image_path text"
and then save the path to where you put the image. So when your application needs the image, you get the path and then render
Notice: Undefined index: files in C:\xampp\htdocs\fotolog\adm\upload_fotos.php on line 6
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\fotolog\adm\upload_fotos.php on line 6
What can you do to debug this programs is start small, make the js part, and then just go "echoing" stuff, is not a smart way to debug, but it works