def create
      @uploaded_file = UploadedFile.new(uploaded_file_params)
      @uploaded_file.user = current_user
      @uploaded_file.title = "#{Time.now}"

      if @uploaded_file.save
        @uploaded_file.update_attributes! title: @uploaded_file.file_identifier

        redirect_to @uploaded_file, notice: 'Uploaded file was successfully created.'
      else
        render :new
      end
    end
def create
      @uploaded_file = UploadedFile.new(uploaded_file_params)
      @uploaded_file.user = current_user
      @uploaded_file.title = "#{Time.now}"

      if @uploaded_file.save
        @uploaded_file.update_attributes! title: @uploaded_file.file_identifier

        redirect_to @uploaded_file, notice: 'Uploaded file was successfully created.'
      else
        render :new
      end
    end
POST /uploaded_files