[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