General developer forum

Filemanager draft image

 
Picture of Masum Miah
Filemanager draft image
 

Hi,


I am currently making a plugin to upload images, which nearly works, this plugin allows admins to upload images using file API (filemanager).

The problem is when i upload an image and save, if another admin tries to edit they dont see the draft image but if i go back and edit, I will see the draft image, and if they add an image it will replace my one with their new image but if i go back and edit i will still see the image I uploaded not the one they did in draft area.

code:

image.php:


edit_form.php:



lib.php


I am a beginner so would really appreciate.

Thanks in advance.

 
Average of ratings: -
Picture of Masum Miah
Re: Filemanager draft image
 

I want all the people that can edit the block to see the same draft when they edit, Please let me know if you dont understand what I am trying to do. 

 
Average of ratings: -
Picture of Masum Miah
Re: Filemanager draft image
 

Any help would be appreciated.

Thank you.

 
Average of ratings: -