Welcome Guest, Not a member yet? Register   Sign In
Upload file using a form
#5

[eluser]Joshua Logsdon[/eluser]
I don't think there is a built-in filter for what you want to do. Here are some additional thoughts though:

You could read in the uploaded file as text and then do things like strip tags, convert html entities, run an xss clean, etc. Then overwrite the file with the changes.

I guess you could also check if the file is binary somehow... if someone were to rename an exe file with a txt extension for example. I believe gmail runs a virus scan on uploaded attachments even.

Then you could send the file and delete it from the server.


Messages In This Thread
Upload file using a form - by El Forum - 11-02-2009, 04:45 PM
Upload file using a form - by El Forum - 11-02-2009, 06:25 PM
Upload file using a form - by El Forum - 11-03-2009, 09:08 AM
Upload file using a form - by El Forum - 11-03-2009, 09:18 AM
Upload file using a form - by El Forum - 11-03-2009, 09:20 AM
Upload file using a form - by El Forum - 11-03-2009, 09:25 AM
Upload file using a form - by El Forum - 11-03-2009, 09:31 AM
Upload file using a form - by El Forum - 11-03-2009, 09:37 AM
Upload file using a form - by El Forum - 11-03-2009, 09:47 AM
Upload file using a form - by El Forum - 11-03-2009, 09:53 AM
Upload file using a form - by El Forum - 11-03-2009, 09:56 AM
Upload file using a form - by El Forum - 11-03-2009, 09:58 AM
Upload file using a form - by El Forum - 11-03-2009, 04:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB