example: you need to enter an image name in the input box, click the upload button to get the image in the project directory, and then upload it to the backend in the form of multipart form-data. Since there is no place to click to open the file box, I ...
currently, I want to upload thumbnails of pictures in batches at the front end. I want to save the image path to the database by calling an api, and upload the files to the server. How to do this? this part has not been touched. ...
I am using vux+cordova for development. you need to select pictures from the album, make thumbnails with base64 on the phone, compress them with canvas, and upload them in the form of blob. the code is as follows: reader.onloadstart = function() { ...
when I am working on the project, I use fileReader to upload the picture. After successfully getting the address of the picture, I assign it to the src attribute of img, but the picture is not displayed. <div class="upload-box"> <...
I haven t written much that ts, is also looking up angularjs while writing. What should I do to select a file at the front end and read it for base64,? My js level is still in the jquery era, please do not hesitate to comment pseudo code: import { C...