fixed name generation for file uploads