How do i accept picture uploads unto a php webpage from a user?
taimeyj 0 Newbie Poster
Recommended Answers
Jump to PostThis is an example of an image upload
Validation code
// Recibe from post $file_name = $_FILES["image"]["name"]; $file_type = $_FILES["image"]["type"]; $file_size = $_FILES["image"]["size"]; $file_error = $_FILES["image"]["error"]; $file_tmp = $_FILES["image"]["tmp_name"]; // Validate Image if(!empty($file_name)){ if($file_name > 120000){ $msg .= "El peso supera los 120 kb !<br>"; } …
All 2 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.