You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: uploads_controller.rb
    path of file: ./repos/e621ng/app/controllers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class UploadsController < ApplicationController
  before_
    
  def show
    @upload = Upload.find(params[:id])
    respond_with(@upload) do |format|
      format.html do
        if @upload.is_completed? && @upload.post_id
          redirect_to(post_path(@upload.post_id))
        end
      end
    end