Vue mobile uploads pictures, but can't find a third-party plug-in. I plan to write a build by myself. Is there anything you need to pay attention to?

< H2 > upload pictures on vue mobile. < / H2 >
(ID card, passport type.. Should not need me to verify, I just do upload)
  • No third-party plug-ins were found. If so, please provide a name
  • .
  • plans to write a build by himself, but after collecting materials and seeing a lot of pits, I am a little worried
  • is there anything you need to pay attention to?

look at blob,formdata.


I just did this recently, using the vant (liked) ui framework with pictures uploaded, but it can not fully meet the upload needs. Vant's image upload is more about encapsulating ui and providing some callback functions, as well as code compression, segmented upload and so on.
vant official website https://www.youzanyun.com/zan.
lrz image compression https://github.com/think2011/.


Core upload function can be fileApi.js , support breakpoint / multipart upload / simple image processing (rotation, etc.), etc. Ui interaction can be written with vue, and later version iteration can be done by writing core upload function by yourself

.

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1ea1f31-1b99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1ea1f31-1b99.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?