diff --git a/luci-app-openclash/luasrc/model/cbi/openclash/config.lua b/luci-app-openclash/luasrc/model/cbi/openclash/config.lua
index 533763c95d..8ad341719d 100644
--- a/luci-app-openclash/luasrc/model/cbi/openclash/config.lua
+++ b/luci-app-openclash/luasrc/model/cbi/openclash/config.lua
@@ -159,8 +159,7 @@ HTTP.setfilehandler(
)
if HTTP.formvalue("upload") then
- local f = HTTP.formvalue("ulfile")
- if #f <= 0 then
+ if not um.value then
um.value = translate("No Specify Upload File")
end
end
diff --git a/luci-app-openclash/luasrc/view/openclash/dvalue.htm b/luci-app-openclash/luasrc/view/openclash/dvalue.htm
index 83ef64e60e..79d15e6357 100644
--- a/luci-app-openclash/luasrc/view/openclash/dvalue.htm
+++ b/luci-app-openclash/luasrc/view/openclash/dvalue.htm
@@ -1,13 +1,13 @@
<%+cbi/valueheader%>
-
-
-<%:Note: Please Upload File According To File Type, File Will Be Saved To The Prompt Path%>
-
-
-<%
- local val = self:cfgvalue(section) or self.default or ""
- write(pcdata(val))
-%>
-
+
+
+ <%:Note: Please Upload File According To File Type, File Will Be Saved To The Prompt Path%>
+
+
+ <%
+ local val = self:cfgvalue(section) or self.default or ""
+ write(pcdata(val))
+ %>
+