  def upload
    Log.add_info(request, '')   # Not to show passwords.

    return unless request.post?

    if params[:file].nil? or params[:file].size <= 0
      render(:text => '')
      return
    end

    post_item = ZeptairPostHelper.get_item_for(@login_user)

    Attachment.create(params, post_item, 0)

    post_item.update_attribute(:updated_at, Time.now)

    render(:text => t('file.uploaded'))
  end
The software constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component.