简体   繁体   中英

File upload control in windows phone8

我找不到在Windows Phone中上传文件的任何控件。是否可以在wp 8中上传文件。当我们单击它时,必须打开手机内存(文档所在的位置)

In windows phone 8, There is no control like FileUpload instead of that you need to use Background Agent to upload files. here are two Good Samples you can go through How to Upload a File from a Windows Phone App and Auto-upload Sample

If you are going to Upload Image files, then you can use the PhotoChooserTask to select file and upload file using the HttpClient Library.

For other file types, You can access ONLY if it is stored in SD card. See here for accessing files from SD Card in windows phone.

Only in Windows Phone 8.1, you can access the Downloads Folder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM