Can you "un"rawurlencode() a file to find it in a folder?

Started by rcane, May 05, 2022, 09:52:24 PM

Previous topic - Next topic

rcane

I have a form and an file upload combined.

It's working but I gotta be able to delete.

Deleting records in the table is easy, but the files are sitting in a folder. 

I can find the file in the table using the same way I found the record itself, but the file was written in the table using urlencode() to get spaces taken care of with %2 etc.

But, the file itself was unharmed in the folder.

Is there a way to "un" encode the table name--putting the spaces back in the document titles--and finding it that way to unlink it?

Never did this particular before.

Oldiesmann

Just change "en" to "de" in the function name (rawurldecode or urldecode depending on which function was used to encode the filename)
Michael Eshom
Christian Metal Fans

rcane

Quote from: Oldiesmann on May 05, 2022, 11:06:05 PMJust change "en" to "de" in the function name (rawurldecode or urldecode depending on which function was used to encode the filename)

Hey thanks I'll give that a try today.


rcane

yep.  sorry; I got called out to work and haven't had time to turn on a machine.

It's worked quite well thank you.

Advertisement: