Mini Program's questions about saving files to the local area

< H2 > wx.savefile () cache problem < / H2 >

wx.savefile()

this picture is truncated by remote debugging.

therefore, the size limit of local file storage indicated on the document is 10m , which means that sandboxie"s cache is a total size of 10m, not the size of a single file.

< H2 > is there a way to save files locally to the phone, similar to pictures saved to photo albums < / H2 > The previous idea of

was to implement wx.savefile (), and found that it was just caching and could not be stored.
then use web-view to inline to download files. But there was no response.

is it possible to download pdf, word and other files locally? is there any other way to cheat?

Please don"t hesitate to give us your advice, thank you ~

Mar.02,2021

wx.downloadFile () downloads pictures, files, etc. I can't find this method in Mini Program api, but it can be used. There are also two wx.saveImageToPhotosAlbum () to save the picture to the system album; wx.saveVideoToPhotosAlbum () to save the video to the system album.


buddy, have you solved it yet? I have also encountered a problem. Pictures and videos can be saved and found in photo albums. File: PDF how do you solve


have you solved it? I have the same problem.


Brother, I am also faced with this problem. Have you solved it?

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-1e562a3-59917.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-1e562a3-59917.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?