Welcome Guest, Not a member yet? Register   Sign In
how to delete files using URI
#1

[eluser]xpix[/eluser]
Hi,

I am coding an image manager and I have problems deleting the files.

Under each image I have a Delete link to base_url() + upload/delete/myimage.jpg/files/64

upload - main controller
delete - a function inside the controller
the rest are just parameters for the delete function

The problem is that apache tries to get the image because of the extension and returns not found

My only solution for now is to have another parameter for the extension.
Eg: upload/delete/myimage/jpg/files/64

Is there another solution to this problem?


What happens if the file you upload has another . in the name. Looks complicated. Maybe is better to use query strings.

Thx


Edit: Maybe a hidden form field will do the trick. But it seems strange to have a form for each image. 50 images = 50 forms


Messages In This Thread
how to delete files using URI - by El Forum - 07-14-2008, 02:32 PM
how to delete files using URI - by El Forum - 07-14-2008, 03:34 PM
how to delete files using URI - by El Forum - 07-16-2008, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB