             :handler (fn [{{{:keys [year issue]} :path} :parameters :as r}]
                        (views/custom-form r year issue))}
       :post {:parameters {:path {:year ::year :issue ::issue}
-                          :query {:query string?
-                                  :customer string?
-                                  :fmt keyword?
-                                  :items any?}}
+                          :multipart {:query string?
+                                      :customer string?
+                                      :fmt keyword?
+                                      :items any?}}
              :handler (fn [{{{:keys [year issue]} :path
-                             {:keys [query customer fmt items]} :query} :parameters :as r}]
-                       (views/custom r year issue query customer fmt items))}}]
+                             {:keys [query customer fmt items]} :multipart} :parameters :as r}]
+                        (views/custom r year issue query customer fmt items))}}]
     ["/custom-confirm"
-     {:get {:parameters {:path {:year ::year :issue ::issue}
-                         :query {:query string?
-                                 :customer string?
-                                 :fmt keyword?
-                                 :file any?}}
-            :handler (fn [{{{:keys [year issue]} :path
-                            {:keys [query customer fmt file]} :query} :parameters :as r}]
-                       (views/custom-confirm r year issue query customer fmt file))}}]
+     {:post {:parameters {:path {:year ::year :issue ::issue}
+                          :multipart {:query string?
+                                      :customer string?
+                                      :fmt keyword?
+                                      :file any?}}
+             :handler (fn [{{{:keys [year issue]} :path
+                             {:keys [query customer fmt file]} :multipart} :parameters :as r}]
+                        (views/custom-confirm r year issue query customer fmt file))}}]
     
     ]
    ["/:year/full"

   ["/" {:get {:handler (fn [_] (views/home))}}]
   ["/:year/:issue"
    {:coercion spec-coercion/coercion
     :middleware [coercion/coerce-request-middleware]}
    
    ["" {:get {:parameters {:path {:year ::year :issue ::issue}}
               :handler (fn [{{{:keys [year issue]} :path} :parameters}]

            [clojure.java.io :as io]
            [clojure.spec.alpha :as s]
            [reitit.coercion.spec :as spec-coercion]
            [reitit.ring.middleware.multipart :as multipart]
            [reitit.ring.coercion :as coercion]
            [ring.util.codec :refer [url-encode]]))

