• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.