Hi All,
i created an application to upload image files using paper clip
plugin,its working successfully,alsoi had a page which l;ists all
the images uploaded by the user.also there is a delete button to delete
the image from db by entering value in the deleted_at fileld in
database not removing that complete row( not from the attachments
files(ie images folder)).but when i tried to delete an image its
getting removed from the images folder under public,can any one
suggest any method to avoid the image not getting deleted from the
public folder
–
Thanks:
Rajeev sharma
first of all thanks for the valiant effort and reply, but that didnt
works for me,bcos i told u that when i delete like that i am losing the
attached file from mu public/pictures folder.is there any possible way
to preevent that. i think something related to plugin.can any one
knows this?
Thanks n advance,
Tony
sir actuallly the problem is in my model i am using has_attached_file,
in its helper definition its deleting files from my public folder.so
its getting deleted. is thre any methode to override that?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.