fix bug in asset upload id checker

This commit is contained in:
Brian Picciano 2022-09-13 13:25:04 +02:00
parent 4f01edb923
commit cef74151d2

View File

@ -155,7 +155,7 @@ func (a *api) postPostAssetHandler() http.Handler {
return http.HandlerFunc(func(rw http.ResponseWriter, r *http.Request) {
id := r.PostFormValue("id")
if id == "/" {
if id == "" {
apiutil.BadRequest(rw, r, errors.New("id is required"))
return
}