Welcome Guest, Not a member yet? Register   Sign In
Question about file uploads
#6

[eluser]Rick Jolly[/eluser]
That's worth mentioning. The example was a starting point and we all know to validate any inputs. I didn't include any controller code, but in the controller you'd validate that the file name is actually a file and not a path. Only then you'd append the file name to the path of your choice and call the download function.

Of course, you wouldn't actually be able to pass a "/" in the img tag without it being treated as another parameter.


Messages In This Thread
Question about file uploads - by El Forum - 07-16-2008, 10:41 PM
Question about file uploads - by El Forum - 07-17-2008, 07:39 AM
Question about file uploads - by El Forum - 07-17-2008, 12:20 PM
Question about file uploads - by El Forum - 07-17-2008, 01:41 PM
Question about file uploads - by El Forum - 07-17-2008, 07:03 PM
Question about file uploads - by El Forum - 07-18-2008, 12:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB