Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42220

php move_uploaded_file without single quotes

$
0
0
I'm trying to move a file to my server and restrict/remove apostrophes from it.

Here's what I have now:

PHP Code:

move_uploaded_file(str_replace("'"""$_FILES["File"]["tmp_name"]), str_replace("'"""$target)); 

The script uploads a file but adds a slash instead if there's a single quote in the file name. I'd just sooner remove them from the filename before uploading the file.

Any ideas?

Thanks.

Viewing all articles
Browse latest Browse all 42220

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>