Discussion Forums  >  Images, Documents, File Locations

Replies: 11    Views: 176

ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
11/03/13 01:03 AM (10 years ago)

Cannot upload pdf file that's 38,000 KB....why?!!!

I am trying to upload a pdf file that is referenced in my application that's 38,564 KB. The upload screen goes black after a while and numerous retrys have failed to upload the file. Is there an upload file limit? Thanks Anthony
 
BigAnth
Aspiring developer
Profile
Posts: 133
Reg: Jan 25, 2012
Sunderland
2,780
like
11/03/13 04:37 AM (10 years ago)
If its self hosted you can upload the PDF via FTP to the correct location
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/03/13 04:59 AM (10 years ago)
You need to actually upload it. Just type the name of the file, like xpto.pdf and make sure you copy it to you project localy, and it will work.
 
BigAnth
Aspiring developer
Profile
Posts: 133
Reg: Jan 25, 2012
Sunderland
2,780
like
11/03/13 05:05 AM (10 years ago)
You could do that; but bare in mind your App size will be greatly increased and if its over a certain amount (is it 50mb ??) it would need to be downloaded onto the device over WiFi
 
MadRod
Aspiring developer
Profile
Posts: 1853
Reg: Apr 12, 2012
Lisbon
27,930
like
11/03/13 05:41 AM (10 years ago)
I think ajaxon98 is referring to uploading the file to the control panel, not linking the app to a url with a pdf. If this is the case, the final app size will always be the same whether you upload it or not, you'll always have to add it to the project.
 
ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
like
11/03/13 09:22 AM (10 years ago)
...yes, I was talking about the control panel...sorry I was not more clear on this point. I expect to have more than 10 documents of this approximate size. What is the best approach in providing these documents for the app and at the same time optimizing the size of the installed app? Thanks. Anthony
 
ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
like
11/03/13 09:24 AM (10 years ago)
BTY....providing a url link instead of a file location returned an ambiguous error....I have associated pdf's with adobe's free reader. Anthony
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/03/13 12:46 PM (10 years ago)
Keep in mind that the BT File Manager just provides you a place to store some of the media that you use in your app. Aside being able to link via URL that media, it won't actually include the file in your app. For stuff that I'm hosting remotely, I use a link at DropBox or my web server. Even better is to include it in the actual app, but that does affect the overall file size, which is something to keep in mind. If you are using the PDF Plugin, and provide a link to the PDF file, it should result in a prompt to the user asking which application on their device they'd like to use to read the file. They will need some sort of PDF reader on their device (for Android). iOS does this natively. Mark
 
ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
like
11/03/13 03:58 PM (10 years ago)
BTY....providing a url link instead of a file location returned an ambiguous error....I have associated pdf's with adobe's free reader. Anthony
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/03/13 04:23 PM (10 years ago)
All errors are logged in LogCat...copy and paste what you see at the time you try to load the file, and we'll take a look!
 
ajaxon98
Android Fan
Profile
Posts: 36
Reg: Oct 20, 2013
Los Angeles
2,310
like
11/03/13 05:46 PM (10 years ago)
Where is logcat? Also, I am not self hosted... Thanks Anthony
 
GoNorthWest
buzztouch Evangelist
Profile
Posts: 8197
Reg: Jun 24, 2011
Oro Valley, AZ
1,000,000
like
11/03/13 08:20 PM (10 years ago)
LogCat is the debug pane in Eclipse. Here's a document that tells you all about debugging: http://www.buzztouch.com/files/howtos/Problem_Reporting_and_Basic_Debug_v1.0.pdf When you run your app in Eclipse (either in the emulator or on a real device connected to your computer), you'll see tons of debug output there. Mark
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.