This Privacy Policy is subject to the provisions of applicable data protection and privacy laws. AS WE UPDATE THE WEBSITE OR EXPAND OUR SERVICES, WE MAY CHANGE THIS PRIVACY POLICY UPON NOTICE TO YOU, HOWEVER, PLEASE REVIEW IT FROM TIME TO TIME. Please take the time to read andunderstand this Privacy Policy so that you can appreciate how we use your Personal Data (as defined below). This Privacy Policy explains our online information collection and use practices, and the choices you can make about the way we use such information. By accepting the Website Terms of Service, you also agree to this Privacy Policy. This notice (“ Privacy Policy“) supplements and is included as a part of our Website Terms of Service. #13, Delray Beach, FL 33444 (hereinafter “TicketSocket,” “we” or “us”) websiteĪt (including all content under the “” domain name, and referred to herein as the “ Website“). $("#uploadimage").Welcome to TicketSocket, Inc. Move_uploaded_file($sourcePath,$targetPath) // Moving Uploaded file $targetPath = "upload/".$_FILES // Target path where file is to be stored $sourcePath = $_FILES // Storing source path of the file in a variable Success: function(data) // A function to be called if request succeeds ProcessData:false, // To send DOMDocument or non processed data file it is set to false form fields and values)ĬontentType: false, // The content type used when sending data to the server.Ĭache: false, // To unable request pages to be cached Type: "POST", // Type of request to be send, called as methodĭata: new FormData(this), // Data sent to server, a set of key/value pairs (i.e. Url: "ajax_php_file.php", // Url to which the request is send Upload file ukuran yang diizinkan adalah 100 Kb. Script PHP menyimpan gambar di lokasi yang ditentukan dan menginformasikan pesan proses berhasil ataupun gagal menyimpan.ĭi sini kita akan menerapkan beberapa validasi pada file yang dipilih, untuk memeriksa apakah file gambar (jpg, jpeg atau png) atau jenis file lainnya. Kemudian menggunakan jQuery Ajax, untuk mengirimkan script php pada tombol submit secara bersamaan. Dalam proses ini gambar yang dipilih akan menyimpannya ke folder direktori atau lokasi yang ditentukan. Dalam postingan kali ini kita akan membahas cara meng-upload gambar menggunakan Ajax dan php tanpa refresh halaman.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |