我正在使用:
<input type="file" accept=".csv" />
Run Code Online (Sandbox Code Playgroud)
它适用于Chrome,Firefox,IE 10+,但不适用于Safari.我尝试:
<input type="file" accept="text/csv" />
Run Code Online (Sandbox Code Playgroud)
它只是在Safari上工作.帮助我跨浏览器.谢谢.
我在 minikube (1.8.0) 上为一些服务创建了入口:
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: gateway-ingress
namespace: kube-system
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- http:
paths:
- backend:
serviceName: api-service
servicePort: 80
path: /api
paths:
- backend:
serviceName: kubernetes-dashboard
servicePort: 80
path: /ui
Run Code Online (Sandbox Code Playgroud)
当我访问 MINIKUBE_IP/ui 时,dashboard 的静态文件不起作用。以下是错误:
192.168.99.100/:1 GET https://192.168.99.100/ui/static/vendor.4f4b705f.css net::ERR_ABORTED
192.168.99.100/:5 GET https://192.168.99.100/ui/static/app.8a6b8127.js net::ERR_ABORTED
VM1524:1 GET https://192.168.99.100/ui/api/v1/thirdpartyresource 404 ()
...
Run Code Online (Sandbox Code Playgroud)
请帮我解决这个错误,谢谢。