© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
D. PowersPHP 8 Solutionshttps://doi.org/10.1007/978-1-4842-7141-4_9

9. Uploading Files

David Powers1  
(1)
London, UK
 

PHP’s ability to handle forms isn’t restricted to text. It can also be used to upload files to a server. For instance, you could build a real estate web site for clients to upload pictures of their properties or a site for all your friends and relatives to upload their holiday photos. However, just because you can do it doesn’t necessarily mean that you should. Allowing others to upload material to your web site could expose you to all sorts of problems. You need to make sure that images are the right size, that they’re of suitable quality, ...

Get PHP 8 Solutions: Dynamic Web Design and Development Made Easy now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.