Title: [Plugin: Add From Server] Upload Filetime Filter
Last modified: August 20, 2016

---

# [Plugin: Add From Server] Upload Filetime Filter

 *  [JK](https://wordpress.org/support/users/justin_k/)
 * (@justin_k)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-add-from-server-upload-filetime-filter/)
 * Hey dd32,
 * I’ve got a very minor request that I hope you’ll be willing to toss into the 
   next update. In class.add-from-server.php, below line 342 where you run
 *     ```
       $return = apply_filters( 'wp_handle_upload', array( 'file' => $new_file, 'url' => $url, 'type' => $type ) );
       ```
   
 * Would you be willing to add another filter as follows?
 *     ```
       $time = apply_filters('afs-attachment-time', $time, $file);
       ```
   
 * You’ve provided a few handy options for how to set the date of the attachment,
   but I’m using my own directory structure (similar to what you’re doing on line
   305), so a filter like this would allow me to use my own regexp to parse it and
   set the date accordingly. Until now I’ve been editing the plugin source after
   each update to re-add this filter.
 * Thanks!
    J~
 * [http://wordpress.org/extend/plugins/add-from-server/](http://wordpress.org/extend/plugins/add-from-server/)

The topic ‘[Plugin: Add From Server] Upload Filetime Filter’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-from-server.svg)
 * [Add From Server](https://wordpress.org/plugins/add-from-server/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-from-server/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-from-server/)
 * [Active Topics](https://wordpress.org/support/plugin/add-from-server/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-from-server/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-from-server/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [JK](https://wordpress.org/support/users/justin_k/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-add-from-server-upload-filetime-filter/)
 * Status: not resolved