Course Information
Course Overview
Explore how you can use AJAX and HTML forms to upload images to PHP servers
Explore how to upload images to your server using AJAX and PHP.
Please note this course covers PHP within the scope of saving files, specifically image files on your server. Knowledge of PHP is a prerequisite to this course. AJAX is done via jQuery which is also a prerequisite to this course. jQuery is only covered within simple AJAX calls and some element html updates.
This course covers a number of methods to store image data onto your server.
Learn how to create a Simple Form with a file input and submit the data to a PHP file. Use PHP to check for valid images, file sizes and check for errors.
Using AJAX to submit form file contents to the server removes the need for a page reload and lets you make use of the response data and output it into your HTML. Simple easy clean way to send images to your server.
BASE64 image data to PHP server can be used to create an image and save it to a file location on the server. This method will ensure you have an image format as its not simply coping the file but actually using the encoded data to create the image file. This method is useful when the image is also generated on the fly.
- Source code is included to get you started quickly.
- Resources and helpful links are also included
Taught by an instructor with over 18 years of real world web development experience, ready to answer any questions you may have.
Join now and start creating your own PHP applications today.
Course Content
- 2 section(s)
- 21 lecture(s)
- Section 1 Introduction to image upload via PHP
- Section 2 Resources and links
What You’ll Learn
- How to send images to the server
- Showing previews of images
- Returning back the path of the new upload
Skills covered in this course
Reviews
-
EEmma Coyle
I managed to get the bits of code I needed to eventually upload a file successfully but I had to take the key parts of this tutorial and give up completely on this tutorial and search what I learned here in Google to find another tutorial. I found this one lacking organization and straightforwardness, along with redundant. It was helpful to see what libraries and built-in functions I was looking for, however.
-
MMarcus Palmer
Absolutely awesome course which really helped me a lot to understand the possibilities when submitting data. Thank you.
-
JJim Ballard
Did everything it said it was going to do clearly and concisely. I couldn't get the upload to work on a Godaddy site, but that was the Jcrop library, not the course. Worked perfectly on my local. I was able to make changes and did get it working on Godaddy, just without the Jcrop tool.
-
CCOULON OLivier
Oui ce cours correspond à mes attentes, cela va me permettre de construire le fonctionnel que je souhaite ajouter à mon site