tencent cloud

Tencent Cloud Super App as a Service

Customizing Storage Path for Saving Files in the Mini Program

Download
Focus Mode
Font Size
Last updated: 2025-07-04 17:33:28
By overriding the getSaveFileDir method in BaseMiniAppProxyImpl class, you can specify the directory for saving images and videos to the system album through the mini program API.
Example:
/**
* Specifies the directory for saving images and videos to the system album
*
*/
public String getSaveFileDir(){
return "myapp";
}
Note:
The default path is tcmpp.





Help and Support

Was this page helpful?

Help us improve! Rate your documentation experience in 5 mins.

Feedback