Welcome Guest, Not a member yet? Register   Sign In
File uploading save file as
#2

[eluser]Colin Williams[/eluser]
Are you familiar with how PHP handles file uploads? It saves the posted files to a temporary folder and then it is up to the given script to move those files over to a permanent location. CI's file uploading simple mitigates that process through a clear API.

So, just rename the file(s) after "uploading" them. Use the [url="http://us2.php.net/rename"]rename()[/url] function, believe it or not! Tongue


Messages In This Thread
File uploading save file as - by El Forum - 08-29-2008, 08:31 PM
File uploading save file as - by El Forum - 08-29-2008, 09:44 PM
File uploading save file as - by El Forum - 08-29-2008, 11:21 PM
File uploading save file as - by El Forum - 08-29-2008, 11:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB