So you'll have to replace SITE_ROOT with an actual path to your folder.. Jump to Post You can use copy() if you need the file in more than one place. However, this circle progress bar CSS has been created. add a note User Contributed Notes 14 notes up down 52 nicoSWD 8 years ago Note that calling this function before move_uploaded_file () is not necessary, as it does the exact same checks already. Create an ajaxfile.php file and a uploads folder to store files. If this fails, fallback to moving the file using drupal_realpath (), if it can be resolved. HTML code snippet: Below is the HTML source code for the HTML form for uploading the file to the server. If the destination file already exists, it will be overwritten. Installation The filesystem functions are part of the PHP core. We and our partners use cookies to Store and/or access information on a device. "