Uploading files over HTTP fails on iOS 8.0.0 GM Safari

前端 未结 4 1979
南笙
南笙 2020-12-04 16:29

UPDATE:
Confirmed: This has been fixed on the iOS 8.0.2 update.

Using PUT/POST to upload file(s) over HTTP seems to get stuc

4条回答
  •  悲&欢浪女
    2020-12-04 17:23

    Actually the file upload works fine on IOS 8 (safari) if the image comes from screen shot and not from the iphone camera. For example, if you take a photo from you camera on iphone and try to upload the file via browser ( input type=file), it will send an empty data
    src: "data:,"

    while if you send the same image to your email and download it from your email and upload it again it works or if you take a screen shot photo it works as below src: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAASABIAAD/7QA4UGhvdG9zaG9wIDMuMAA4QklNBAQAAAAAAAA4QklNBCUAAAAAABDUHYzZjwCyBOmACZjs+EJ+/8AAEQgGYATIAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkK....# ..."

    Any idea or hint please us know. Angluar JS is being used for file upload and NodeJS on the server Regards, Alan Mehio

提交回复
热议问题