Title: Image Upload
Last modified: August 30, 2016

---

# Image Upload

 *  Resolved [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/)
 * Hi
 * I really like this plugin so far, it works better than any other free ones I 
   tried. However, I am having an issue with sending attachments. It allows me to
   go to my folders on pc and select an image, but it does not upload it to the 
   actual site.
 * I assume this is how you share images via private messages. Perhaps this would
   be done easier if the media upload function from post editor was added instead?
 * Thank you
 * [https://wordpress.org/plugins/front-end-pm/](https://wordpress.org/plugins/front-end-pm/)

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

 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314593)
 * So the files are being uploaded actually, but to the wp-content/uploads/front-
   end-pm/2015/07 folder, i believe that the plugin is calling the wrong folder 
   to show images. How do i call the image from the right location after it has 
   been posted? I found the “echo” line in the fep-attachment-class.php what do 
   I need to change this to to call the right folder?
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314594)
 * so it was your problem, I didn’t understand that’s why I didn’t reply.
 * so when you send a message you can access that message in your messagebox. you
   can see attachments there also. so if not uploaded to your site how can attachments
   be there?
 * what is the right folder you think for attachmens of this plugin?
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314595)
 * I have go through all the support posts, reinstalled the plugin through wordpress,
   now it seems that when I upload the image, at first it lets me download it, but
   a few moment later it gives me “invalid token” I have tried this on several websites
   and the result is the same. If the images are being uploaded fine, what function
   can i use to just display the image, I do not need a link to download it.
 * I do not know which folder would be correct, perhaps make a new one in the front
   end pm plugin, but I can see them via FTP in wp-content/uploads/front-end-pm/
   2015/07 or wp-content/uploads/front-end-pm/ if i disable the “organize my uploads
   into month-and-year folders”
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314596)
 * There is a plugin called wp user avatar, which uploads images directly into wordpress
   library, it attaches them to the author and displays them as soon as they are
   uploaded. I only compare because this plugin does not require a post to upload
   an image, so similar yo FEPM. Do you think that maybe using wordpress media library
   so wp-content/uploads instead of wp-content/uploads/front-end-pm and calling 
   the image from that folder would work better?
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314597)
 * to just display a image, folder is not a problem. from any folder you can display
   any image without download. this plugin’s first attachment option was that way.
   But user do not only send images. they can send any type of file (allowed). but
   browser can not show every type of file. users from forum wanted to make download
   link but show in browser. also I am making this plugin as secured as possible.
   user can send any confidential attachment with their message. so I make it that
   way so that only allowed users can doenload that attachment. also download link
   can be used only once. if you try to download with the same link you will get
   token error. you can refresh page and try to download again. than you will not
   get token error.
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314598)
 * Could you please give me the function and where to enter it so that the uploaded
   image is from the correct user is displayed? Perhaps in my case just limit the
   files to images only, and only so authors and admin can send them, others can
   only view.
 * However I do not want to ask too much of you. The code to just display attached
   image and where to place it would be great.
 * Thank you
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314599)
 * Something like echo fep_get_attachment_image() i assume, but that is not the 
   whole function.
 *  Plugin Author [Shamim Hasan](https://wordpress.org/support/users/shamim51/)
 * (@shamim51)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314600)
 * open fep-attachment-class.php around line 197
 * replace
 *     ```
       fep_action_url("download&id=$attachment_id&token=$token")
       ```
   
 * with
 *     ```
       esc_url($unserialized_file['url'])
       ```
   
 * Now when you click on attachment image name it will show on browser and will 
   not download. Remember when you will update this plugin this changes will be 
   removed.
 * If you need customization you can contact with me through [https://shamimbiplob.wordpress.com/contact-us/](https://shamimbiplob.wordpress.com/contact-us/)
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314602)
 * Very nice, thank you so much. I know i keep asking, but this is the last thing
   i need, is there a way for me to display this attachment inside the message box
   before the user clicks on it, without having to go into another browser?
 * So users can see images directly in their message box?
 * Thank you for your help, best response time and support so far out of all plug
   ins I have used
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314603)
 * I figured it out, replace line 197 echo “<a href= with echo “<img src=
 * Thank you so much for your help
 *  Thread Starter [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * (@kirill3772)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314604)
 * Resolved

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

The topic ‘Image Upload’ is closed to new replies.

 * ![](https://ps.w.org/front-end-pm/assets/icon-256x256.gif?rev=2309447)
 * [Front End PM](https://wordpress.org/plugins/front-end-pm/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/front-end-pm/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/front-end-pm/)
 * [Active Topics](https://wordpress.org/support/plugin/front-end-pm/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/front-end-pm/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/front-end-pm/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [kirill3772](https://wordpress.org/support/users/kirill3772/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/image-upload-39/#post-6314604)
 * Status: resolved