def update
      @uploaded_file.user = current_user
      @uploaded_file.title = "#{Time.now}"

      if @uploaded_file.update(uploaded_file_params)
        @uploaded_file.update_attributes! title: @uploaded_file.file_identifier

        redirect_to @uploaded_file, notice: 'Uploaded file was successfully updated.'
      else
        render :edit
      end
    end
def update
      @uploaded_file.user = current_user
      @uploaded_file.title = "#{Time.now}"

      if @uploaded_file.update(uploaded_file_params)
        @uploaded_file.update_attributes! title: @uploaded_file.file_identifier

        redirect_to @uploaded_file, notice: 'Uploaded file was successfully updated.'
      else
        render :edit
      end
    end
PATCH/PUT /uploaded_files/1