post attachment limits - About xda-developers.com

cc: @AquilaDroid
When attaching files to posts, what are the size limits? Do they vary by file extension? By thread? By user?
Someone wanted to share a 180KB text file. I said "just attach it, I've seen much bigger files." He found he was forced to break it into pieces.
I went through the motions of attaching a 40MB PDF file. It ground away a bit, and seemed to have accepted and uploaded the file. I deleted the attachment before posting, but it really looked like it was going to let me do it.

This would be something to ask to @MikeChannon, please?
I'm also interested in this because the other day I needed to attach a small 200KB txt file but was unable to do it. The file was uploaded but not recognized: the posted message did not contain the attachment.
So my bonus question to Mike is: are txt and log (for instance) extensions allowed on xda currently? If it's not the case it would be appreciated to add them because txt/log/whatever are basic to me.
@J.Michael's concerns are interesting.
Thanks.

In another thread, people regularly attach .txt files. When I try to "open" the attachment in my browser, instead of displaying the file in a browser tab (which I want), it gets downloaded. Add to the nuisance of having to open another app and navigate to the Downloads folder, the subsequent bug hunt for a file whose name I did not get to choose, which name was never clearly displayed to me.
It may be that those text files are less than 20KB.

woodman said:
This would be something to ask to @MikeChannon, please?
I'm also interested in this because the other day I needed to attach a small 200KB txt file but was unable to do it. The file was uploaded but not recognized: the posted message did not contain the attachment.
So my bonus question to Mike is: are txt and log (for instance) extensions allowed on xda currently? If it's not the case it would be appreciated to add them because txt/log/whatever are basic to me.
@J.Michael's concerns are interesting.
Thanks.
Click to expand...
Click to collapse
J.Michael said:
In another thread, people regularly attach .txt files. When I try to "open" the attachment in my browser, instead of displaying the file in a browser tab (which I want), it gets downloaded. Add to the nuisance of having to open another app and navigate to the Downloads folder, the subsequent bug hunt for a file whose name I did not get to choose, which name was never clearly displayed to me.
It may be that those text files are less than 20KB.
Click to expand...
Click to collapse
Yes txt, pdf, log files are already approved and with big size limits. The system uses "chunked" uploading.
A couple of points to note. It might be that on any one occasion the servers are at high load and might not co-operate nicely.
As for whether your browser opens or downloads a file, well that depends on you and the settings you have set in your browser. You have options to choose whether your browser opens or saves files and it can be set by file type. Different browsers can have varying options. In firefox go to Settings>General and scroll down for options for each file type. In Chrome settings can be changed via Windows see here.
Mike

Testing uploading txt file...

I've tried to upload a txt file from Chrome mobile, and it doesn't work, like the other day. Will probably try some other things later...

New test, uploading very small txt file...

In either Naked Browser or Chrome (on a tablet), trying to open the attachment (tap or take the trouble to long-press and select "Open in new tab") instead results in "download". I do not see any settings to specify handling as a function of file type.
Maybe it is because the URL does not look like a file name ("https://forum.xda-developers.com/attachments/test-txt.5384917/"), but the name of the downloaded file is clean ("test.txt"), and I am able to open image attachments in the browser, as opposed to being forced to download text files.
Can you confirm that a MIME type is being sent and just what it is?

Related

[Q] Help needed to change touchflo default programs...

I have an HTC Touchpro 2 with windows mobile. The touchflo bar at the botton of the HTC Sense homepage is nice with one exception...the inability to change default programs.
Let's start with the webbrowser for example. I do NOT like Opera. As a matter of fact I use Skyfire. Currently it's sitting in the PROGRAMS tab and then I have to choose the browser from there. I would like to set it up so that I can just go to the internet tab and hit the planet/web icon and it will launch skyfire instead of opera. Is this doable?
Then there are the bookmarks on the internet tab. I don't want this to be a political thread, so don't make it one. It comes programmed with CNN and ESPN on there. Well one, I do not like CNN and I'd much rather put FOX on there. Second, I don't much care for sports so I'd like to remove ESPN altogether. It would be nice if I could add my own bookmarks.
What about the other programs? Can I change the default calender? What about the text program? The text program is ok but when I am sending a message to 10 people, I dont like having to type in each number or go select each name one at a time. I'd like a text/multimedia program that will let me select multiple recipients.
I know this is a lot to ask but once you point me in the right direction, I'll get it. Thanks in advance for the help.
~Mike
This website's search function is your friend. Instructions on how to make Skyfire the default browser in the Internet tab:
http://forum.xda-developers.com/showthread.php?p=4476068#post4476068
Cookies Home tab Editor (which requires Cookies Home Tab to be installed also) lets you change the applications launched from the Sense tabs (Messaging, Calendar, etc. but apparently not the Internet tab?). Its also an awesome way to customize the home tab, and well worth having on your phone.
http://forum.xda-developers.com/showthread.php?t=633590
http://forum.xda-developers.com/showthread.php?t=625483
nativetexan210 said:
Then there are the bookmarks on the internet tab. I don't want this to be a political thread, so don't make it one. It comes programmed with CNN and ESPN on there. Well one, I do not like CNN and I'd much rather put FOX on there.
Click to expand...
Click to collapse
If you don't want to make it a political thread, why not just say "I want to change the website shortcuts" ? You can want to change it from CNN to Bang Bros for all the heck we care.
Changing the website shortcuts in the Internet tab is simple. In the Internet tab, just touch Menu, remove the shortcut, then add the website of your choice.
Thanks.
Well, I guess that's a start. I was hoping to not have to install a different home screen or tabs slider, maybe I have the wrong idea about the Cookie app, I'll check it out.
Good point on the political part. I still honestly didn't want a political debate on my news choices but I could have gone with a different example. As for going into Opera and deleting the bookmarks and putting my own, that doesn't effect the pre-programmed bookmarks on the Internet touchflo tab. I think that removing those bookmarks will take some actual digging into the phone system files.
As for changing the default browser, yea, that part wasn't so hard. What I meant was that I wanted to open the internet touchflo tab and click the internet icon and have it open Skyfire instead of Opera, changing the default SYSTEM browser only affects what browser is used when opening hyperlinks from texts or emails.
Thank you for your suggestions though. They ARE greatly appreciated and I will check out the apps you suggested. As for the search function, I hate it because I can never get a narrowed set of results that apply directly to what I'm looking at. I'll try again though. Thanks again.
scratch that, I just looked at the first link you posted about the internet, I think that was PRECISELY what I was looking for. Thank you.
nativetexan210 said:
Well, I guess that's a start. I was hoping to not have to install a different home screen or tabs slider, maybe I have the wrong idea about the Cookie app, I'll check it out.
Click to expand...
Click to collapse
Yes, the CHT re-skins the home screen. It has awesome customizations, but it does use more program memory (some complain that it slows down the TP2 too much). So if you're on the fence, it might not be for you.
nativetexan210 said:
As for going into Opera and deleting the bookmarks and putting my own, that doesn't effect the pre-programmed bookmarks on the Internet touchflo tab. I think that removing those bookmarks will take some actual digging into the phone system files.
Click to expand...
Click to collapse
You aren't reading my post very carefully. I didn't tell you to delete the bookmarks in Opera. While in the INTERNET TAB, select menu, pick "Remove Favorite Shortcut", select "Done". Then select "Add Internet Shortcut" and pick the website of your choice. I haven't been using the stock ROM for a long time now, so it might be setup a bit different. But I don't think so, from my recollection.
Yea, I misunderstood. Sorry. That might be due to the fact that upon opening the Internet Tab, there is no menu button. Tapping and Holding on a bookmark does nothing (i.e. circle of dots...onscreen "right click" menu), and the soft keys only show Browser and Bookmarks. Browser is obvious. Bookmarks, well that lists two bookmarks that AREN'T the "permanent" bookmarks I was talking about.
But I should note that I have found the solution, kinda. If you search the phones system files (via computer) go to /application data/manilla/InternetPortal-en-us.xml then you can edit the default browser AND add/remove "permanent" links. Now I say I KINDA figured it out because unfortunately my .xml is write protected. Even if I right click and open the properties, uncheck "read only" it still remains write protected. If I create a new file, similarly named, the phone for some reason ignores the new .xml file and reads as if there is no .xml (provided that I remove the original, as I'd have to in order to make a new one)
So I'm about to try and figure out how to edit this .xml. I'll figure it out and when I do I'll post the solution on here. Wish me luck...I'm SOOOOOOOO close to getting this right.
nativetexan210 said:
That might be due to the fact that upon opening the Internet Tab, there is no menu button. Tapping and Holding on a bookmark does nothing (i.e. circle of dots...onscreen "right click" menu), and the soft keys only show Browser and Bookmarks. Browser is obvious. Bookmarks, well that lists two bookmarks that AREN'T the "permanent" bookmarks I was talking about.
Click to expand...
Click to collapse
Are those 2 links that you see under "Bookmarks" in the Internet tab the CNN and ESPN shortcuts, or something else?
nativetexan210 said:
But I should note that I have found the solution, kinda. If you search the phones system files (via computer) go to /application data/manilla/InternetPortal-en-us.xml then you can edit the default browser AND add/remove "permanent" links. Now I say I KINDA figured it out because unfortunately my .xml is write protected. Even if I right click and open the properties, uncheck "read only" it still remains write protected. If I create a new file, similarly named, the phone for some reason ignores the new .xml file and reads as if there is no .xml (provided that I remove the original, as I'd have to in order to make a new one)
Click to expand...
Click to collapse
If I remember properly, the trick the un-write protecting the Manila files, is to copy them (use Total Commander or similar, not the built-in File Explorer) to another directory. Then go Properties, uncheck Read Only, then copy back to the Manila directory to overwrite the old file. Save a version of the un-edited .xml file just in case you screw something up.
Yea, those two bookmarks are something else. Sites that I personally bookmarked IN Opera. I hit that softkey and it opens Opera and takes me to the bookmarks in the browser.
As for editing the file. I already messed it up. Copied to my desktop, edited that in notepad, and copied it OVER the existing file without thinking. As SOON as I started the copy I realized that I failed to make a backup. ****. Unfortunately, now my phone acts as if InternetPortal-en-us doesn't exist. It opens up my systems default browser (which IS skyfire) but the first screen isn't google like I specified in the XML, instead its an Error 404 type screen that says it can't find "\Search\\Home" or something like that. I also edited the permanent bookmarks, deleted youtube and espn, edited cnn to show fox. Now only 1 bookmark shows up...and it isn't Fox like you would hope...no, it's youtube.
I can't figure out how it defaults to youtube nor can I figure out why, with no programming errors or file-name errors, my phone believes that the file doesn't exist. I downloaded Total Commander and edited the properties of this file to read as READ-ONLY and SYSTEM but that didn't help either.
So, do you have any fix ideas? Yes, I know it's a good idea to make a backup, I typically do. I just got impulsive and reckless. Moved too fast.
I'm out of ideas. Personally, I don't use the Internet tab. In fact, I turned that tab off. My browser is one of the quicklinks on my home tab. It might just be easier to go that route.
If you want to return the Manila file to the way it was before, and don't mind losing your data, customizations, etc., a hard reset will restore the phone to factory condition. Go to Start>Settings>System>Empty Storage.
Well I thank you for your help thus far. I have been thinking about a hard reset but it really isn't worth it. I don't use the internet tab either because I use skyfire. So I'll either disable the tab or try one last thing. My father has the same phone. Service and model. I'll try copying the file from his phone and hopefully it works will with mine. I can't find anywhere on the web to download this file so this is my last logical resort.
nativetexan210 said:
My father has the same phone. Service and model. I'll try copying the file from his phone and hopefully it works will with mine.
Click to expand...
Click to collapse
This should work just fine.

[Q] Edited InternetPortal-en-US.xml ...now the internet tab won't even read the file.

Ok, so I recently posted asking about editing the internet tab on the touchflo. After a lot of searching I found the answer. So, after finding the file I attempt to edit it. Nope...it's write protected do my XML editor can't save...nor can a text editor save. So I copy it to the desktop (and stupidly didn't make a backup copy before doing all this following...) I edit it. Hooray, I think I did what I wanted. So I copy the desktop file, paste it in the manila folder on my phone...****! I didn't make a copy of the original. Well, that's gone. Hope it worked...
...it did, kinda. Well now touching the internet world icon will open skyfire like I told it (or maybe because skyfire is the default system browser, and the xml is no longer there telling it to use opera) but it brings me to the standard error 404 kind of screen. Something about it not being able to find /search//home.
Furthermore, I wanted to get rid of the standard permanent bookmarks on the internet tab. I deleted the youtube link, basically everything but facebook just to get started. Well now the internet tab only shows youtube...one of the ones I deleted. WHAT THE HELL IS MY PHONE READING FROM? Clearly it isn't reading the InternetPortal-en-US.xml
Someone please help me out. This phone is pissing me off.

Q: can you attach pdf file to mms

Trying to attach pdf to a text message to send out work schedule to a specific group. I can attach pictures and video things but can't find a place to attach file. Any ideas whether even possible.
Yeah. Using a file explorer (I use Root Explorer), find the PDF you wanna send, longpress on it and a list of options comes up. Select Send (or Share, depending on explorer) and then select Messaging from the list.
Sent from my PC36100 using xda premium
when i do that there is no option for message. It only goes to the email clients on my phone and bluetooth. Doesn't give me message option for some reason. is there a setting I need to change somewhere else???
Hey,
I mean as long as the file isnt to big you should be able to but why not just email the file?
For stuff like that, I upload it to Dropbox then send the link via sms. I don't know that it's even possible to send files that aren't photos or videos through mms.
dropbox works for me
Tmail app
formulabird said:
Trying to attach pdf to a text message to send out work schedule to a specific group. I can attach pictures and video things but can't find a place to attach file. Any ideas whether even possible.
Click to expand...
Click to collapse
There is an app called Tmail. It allows you to send any kind of file from your SDcard with an MMS message.
Here is the link
https://play.google.com/store/apps/details?id=com.phonelight.tmailtrial
But it is only limited to the MMS size which is 300KB, too small.
It's not an ideal/perfect solution but I really like PushBullet. Not ideal because the recipient needs to install it also but the features are very powerful and extremely reliable and easy to use.
Sent from my SM-N910C using XDA-Developers mobile app

Pics in "Download" folder magically disappear?

Only happens on my wife's phone and not mine. She can download the pics from an email or text and after about 24 hours "poof" She just sees a black template for each one. Can't bring them up on PC and or QuikPic- You can see the templates in the Download Folder but no where else nor can you do anything with them other than delete. She is stock and its done this out of the box-
Thanks in advance for any help!
Anyone... thanks = )
Do the file sizes change?
Murasaki no Kaze said:
Do the file sizes change?
Click to expand...
Click to collapse
Jut looked at her phone to verify and now the thumbnails are gone... I saved some more photos and will verify for you-
Also path is the typical... /storage/sdcard0/Download/NAME OF FILE.JPG
Thanks!
If she's plugging it into a mac (or any computer) it's probably set to auto copy then remove from phone.
Also check any apps that "sync" or auto-upload pics.
Just verified, she does not hook it up to any PC even the one at work... only charges off the wall.
Thanks
See if she's using any apps with her pics. Other than that just check to see if the file size is changing. It mostly sounds like something is moving/deleting the pics.
She was completely stock before last night putting the Quikpic on there to see if that program could still see them. Other than stock gallery and stock settings- I haven't found any setting within Gmail or Messaging or within Gallery or Settings that does anything weird to pictures unless I have missed something.
Thanks again for all of your help so far...
It won't be the gallery, you'd look to that for thumbnail problems.
Check if she uploads to facebook/instagram/etc.
If she does, HOW is she uploading? Web? App?
No uploading... she just keeps them in her Download Folder and eventually they turn into a black thumbnail template.
Whats funny is the ones that she moves to a folder (With a Category Name) no issue and they never dissapear... Only that folder...
I have removed everything and cleared up the directory and let the stock android file structure- re-create everything. its very weird...
Saving to a sdcard or internal?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Is the by chance a file in the directory called .nomedia I believe is what it's called? I get weird issues with pictures downloaded from time to time .I had the nomedia file deleted that and haven't had any issues with images since
Making the iPhone jealous one user at a time.
blaker13 said:
Saving to a sdcard or internal?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Click to expand...
Click to collapse
internal. Default download directory.
mkfryan said:
Is the by chance a file in the directory called .nomedia I believe is what it's called? I get weird issues with pictures downloaded from time to time .I had the nomedia file deleted that and haven't had any issues with images since
Making the iPhone jealous one user at a time.
Click to expand...
Click to collapse
.nomedia doesn't directly affect files. It's used to tell galleries/music players/etc not to bother reading the current folder. It will make stuff not appear in apps, but it doesn't touch files. There's no reason for that to be in a stock download folder, but never hurts to check.
Love the signature btw
Is she going into her "downloads" app in her app drawer and clearing that list out? I know I accidentally do that from time to time.
Try using File Manager to move them to external storage. Does she maybe have a cleaning app that clears out her downloads?
Sent from my SAMSUNG-SGH-I747 using xda app-developers app
Alright so a little more info-
When she downloaded Quikpic to try and view the thumbnails the program actually removed them. So thats why the templates were deleted this time.
However, one thing is certain- The download is set to internal storage and the category folders are on the Micro SD.
So if she moves them to a category on the Micro SD they are fine and never turn into a black template/thumbnail. If she keeps them in the Download Folder however, they eventually turn to a black thumbnail ans stay there until maually deleted... its like the picture disapears and the thumbnail looses contact with the original file.
-Thanks again for everyones help so far... :good:
Will check this tonight... .nomedia thing-
Be sure to ask what thenewguy1 asked.
If all else fails, she can just install a download manager and have it intercept and save the pictures to a different folder.
Also, does this ONLY happen to pics? No other file types are affected?
Alright so some wild updates... may be onto something (She doesn't clear downloads and she doesn't have the no image file)
However... it happened again yesterday- Here is the scenario on how it occurs.
She has an email with a image in Gmail-
Saves the picture-
File is saved in Download Folder and visible within Gallery Download Folder-
She then takes the email within Gmail and moves it to a folder-
Several minutes later this happens to the image-
Blacked out thumbnail and the size and data or there but no image-
Unable to see it at all or explore for it-
It gets better, if she moves it back to the Inbox or where it was saved orig the image will reappear-
So in theory its like it saves the shortcut to the image and when the image is moved the shortcut defaults to blank template.
What causes this??? LOL Thanks = )
So she's saving from the gmail app? Or from gmail web?
She clicks on pic -> menu -> save ?
Is that how she's saving them?
In trying to simulate your problem, somehow my thumbnail cache got screwed lol, cleared through quickpic and it seems to be working fine, haven't seen it black out yet... for me it doesn't give me the save option, it shows me the picture, and if I check the folder or gallery, it's already been saved to disk.
Now gmails tripping lol
Try clearing data and see if this problem persists.
senfinger said:
Alright so some wild updates... may be onto something (She doesn't clear downloads and she doesn't have the no image file)
However... it happened again yesterday- Here is the scenario on how it occurs.
She has an email with a image in Gmail-
Saves the picture-
File is saved in Download Folder and visible within Gallery Download Folder-
She then takes the email within Gmail and moves it to a folder-
Several minutes later this happens to the image-
Blacked out thumbnail and the size and data or there but no image-
Unable to see it at all or explore for it-
It gets better, if she moves it back to the Inbox or where it was saved orig the image will reappear-
So in theory its like it saves the shortcut to the image and when the image is moved the shortcut defaults to blank template.
What causes this??? LOL Thanks = )
Click to expand...
Click to collapse
How is she saving it? I am also trying to replicate the issue. I am opening the attachment, hitting menu and save. I have moved the email but the image is still working fine. If she uses file manager to move them to another folder does it also corrupt the file? Is she somehow saving a link or shortcut? I am about lost
Sent from my SAMSUNG-SGH-I747 using xda app-developers app

[Q] Can not paste large typed note files from Clip-Tray

Guys,
Here's a problem that has me confused ~ With the exception of Evernote, no matter what Notes app I use if I open a large document file and select all the typed content then copy to the Clip-Tray, if I then go to any other notes app and select paste, only the top half of the notes in the doc file get pasted.
However, if I do the same in Evernote, all the docs notes get copied across!
It would appear this problem is isolated to my G3 because if I try and do the exact same on a different phone, the entire doc and all it's notes gets copied and pasted across.
Any ideas why there is this limitation?
P.S. I can't use Evernote because this particular doc has a lot of passwords. As such I need to use a secure notes app (which I have 'msecure' and have tried the same with others).
Further confusing ~ Even with only half the typed notes copied and pasted, if I then try to edit and type in the missing notes, although the keyboard pops up and I can type, however nothing gets added to the file.
Basically you can happily type as much as you want but nothing is added on screen or in the doc file.
Thanks in advance.
Anyone........ Any ideas?
It's driving me nuts.
I tried installing another notes app and same thing happens, I load a notes file into it but I can't add any more text to the file.
So no one has any ideas or thoughts on the subject?

Categories

Resources