PHP class for managing file uploads