Title: Missing File Path Back Slash
Last modified: August 22, 2016

---

# Missing File Path Back Slash

 *  Resolved [mcEmmanuel](https://wordpress.org/support/users/mcemmanuel/)
 * (@mcemmanuel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/missing-file-path-back-slash/)
 * I found the following detail, I would like to know if you can help me solve.
 * 1. When adding an element from page upload.php, the selection window is displayed,
   when selecting a destination, starts loading the file, before giving click the
   select button to close the window you just click on the select button again and
   starts loading the file, with this files that are uploaded are doubled.
 * 2. Files are uploaded so properly, however the following happens, the path of
   the files are missing the last back slash eg
 * Upload the file sample.png and route shown wordpress
    wp-content / uploads / 
   2015 / 02sample.png
 * As additional data, the wordpress version is 4.1.1, using the server under Windows
   Server 2008 with IIS7
 * [https://wordpress.org/plugins/advanced-uploader/](https://wordpress.org/plugins/advanced-uploader/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [mcEmmanuel](https://wordpress.org/support/users/mcemmanuel/)
 * (@mcemmanuel)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/missing-file-path-back-slash/#post-5829367)
 * Hi, analyzing the code I found it on line 374 of file upload.php to need to put
   the separator.
 * current line:
    `$attach_id = wp_insert_attachment( $attachment, $target_path .
   $name, $parent_id);`
 * updated line:
    `$attach_id = wp_insert_attachment( $attachment, $target_path .
   DIRECTORY_SEPARATOR . $name, $parent_id);`
 *  Plugin Author [Oli Redmond](https://wordpress.org/support/users/ojredmond/)
 * (@ojredmond)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/missing-file-path-back-slash/#post-5829470)
 * Hi,
 * I do not have this issue so must be down to server config, i will update code
   to make more robust once i figure out how to get my SVN working again.
 *  Plugin Author [Oli Redmond](https://wordpress.org/support/users/ojredmond/)
 * (@ojredmond)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/missing-file-path-back-slash/#post-5829483)
 * version 2.09 should resolve this issue

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Missing File Path Back Slash’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-uploader.svg)
 * [Advanced uploader](https://wordpress.org/plugins/advanced-uploader/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-uploader/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-uploader/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-uploader/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-uploader/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-uploader/reviews/)

## Tags

 * [incorrect](https://wordpress.org/support/topic-tag/incorrect/)
 * [missing](https://wordpress.org/support/topic-tag/missing/)
 * [path](https://wordpress.org/support/topic-tag/path/)

 * 3 replies
 * 2 participants
 * Last reply from: [Oli Redmond](https://wordpress.org/support/users/ojredmond/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/missing-file-path-back-slash/#post-5829483)
 * Status: resolved