Upload data to file from a specified post='thefiledata'

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Wed Apr 02, 2014 1:18 am

http://us3.php.net/manual/en/function.m ... d-file.php That page gives example of uploading multiple files and then moving them around. You should be very careful with what you're making, that's an idea that opens a lot of attack vectors to your web server. Whenever someone has the ability to arbitrarily execute code or get your server to parse arbitrary files, you increase the odds of privilege escalation attacks, injection attacks, etc. It's never a bad idea in those situations to serve the file from a virtual machine that has no rights to other resources on the computer or network. Just something to think about.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 7 guests