Upload page: Up.htm
Forms to add encType = "multipart / form-date"
form>
Processing Page: UPLOAD.PHP
PHP $ f = $ http_post_files ['file']; $ dest_dir = 'uploads'; $ dest = $ dest_dir. "/". Date ("ymd"). "-". $ f [' name "; // Folder date file name to prevent it from being overwritten due to renovation. $ R = move_uploaded_file ($ F ['TMP_NAME'], $ DEST); //move_upload_file (Upload File Name, Upload Directory) CHMOD ($ DEST, 0755); // Setting the file permission CHMOD (file name, permission is generally an octal 0755) Echo "picture upload success, Click to view "; >