IBM Worklight v5.0.6 Application Center - apk file upload fails

三世轮回 提交于 2019-12-24 22:14:10

问题


When attempting to upload our apk file, the server responds back with simply

"File HelloWorld.apk file not uploaded"

Nothing is logged in trace.log in relation to this upload, so not able to see any type of log message to diagnose further. How do you enable logging for this?

Is there a timeout, or file upload size limit? If so, how/where do you change that? The HelloWorld.apk file size is 5.6MB


回答1:


There is indeed a filesize limit, but it is imposed by MySQL by default (1MB). If you are using MySQL 5.1 or 5.5 (5.6 is not supported in Worklight 5.0.x). follow these steps:

  1. Locate the file my.ini belonging to your MySQL installation
  2. In it, find the section [mysqld]
  3. Underneath the section name, paste this: max_allowed_packet=1000M
  4. Re-start the MySQL service
  5. Re-deploy the .apk file

You may need to re-start the application server running Application Center as well.



来源:https://stackoverflow.com/questions/17155370/ibm-worklight-v5-0-6-application-center-apk-file-upload-fails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!