fuel/core — pull request #1152 by kenjis (2012-09-20 05:11:42+00:00)
Title: Fix auto_rename file checking logic

There is a bug if there are uploadings with the same filename at the same time, uploaded files may be overwritten even if set auto_rename true.

Fix it by creating file with fopen 'x' and ensure not to be overwritten.