S Sytek Active Member Licensed User Longtime User Apr 18, 2016 #1 Hello Everyone, When my client uploads a File (with spaces in the File Name) to the server and then try to Download that File to the Device the app crashes. When I remove the space from the File Name and upload it to my server and then Download it with the Device the app works just fine. Eg: spiderman 001.jpg When the Device Downloads this File the app crashes. spiderman001.jpg When the Device Downloads this one the the app Does not crash. What Can I Do to Solve this Issue? Thank's in advance! Regards!
Hello Everyone, When my client uploads a File (with spaces in the File Name) to the server and then try to Download that File to the Device the app crashes. When I remove the space from the File Name and upload it to my server and then Download it with the Device the app works just fine. Eg: spiderman 001.jpg When the Device Downloads this File the app crashes. spiderman001.jpg When the Device Downloads this one the the app Does not crash. What Can I Do to Solve this Issue? Thank's in advance! Regards!
DonManfred Expert Licensed User Longtime User Apr 18, 2016 #2 Sytek said: What Can I Do to Solve this Issue? Click to expand... Without seeing your code and to know what you have done and how it is nearly impossible to help. Post you code to upload- download Post the error-message from the log when the app crashes Upvote 0
Sytek said: What Can I Do to Solve this Issue? Click to expand... Without seeing your code and to know what you have done and how it is nearly impossible to help. Post you code to upload- download Post the error-message from the log when the app crashes
somed3v3loper Well-Known Member Licensed User Longtime User Apr 18, 2016 #3 https://www.b4x.com/android/forum/threads/whos-still-naming-their-files-the-dos-days.64211/ Upvote 0
wonder Expert Licensed User Longtime User Apr 18, 2016 #4 Have the server renaming the files automatically: Code: filename.replace(" ", "_") Upvote 0
S sorex Expert Licensed User Longtime User Apr 18, 2016 #5 or replace the space with %20 on the app side. Upvote 0