Page 1 of 3 123 LastLast
Results 1 to 10 of 28

Thread: Neatest way to post a txt attachment here?

  1. #1
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    1,083
    Distro
    Ubuntu 20.04 Focal Fossa

    Neatest way to post a txt attachment here?

    Edit: This has since evolved to include posting images too.

    Hi all!

    This is not a big concern, just curiosity.

    I wanted to attach my menu.lst file contents to a post on this forum.
    I opened it in gedit & copied it to my desktop where it sat looking like a text file (with no .suffix though...)

    When I tried to attach it to my post, I got an error message about illegal file type, or something similar.
    That was when I noticed it didn't have a .suffix.

    I then pasted it into OpenOffice Writer & saved it as an .odt file.
    When I tried to attach that, it exceeded the max size allowed for that file type.

    Finally it dawned on me that I could save it as a .txt file from OOo so that was OK.

    Is that the best way to get from gedit to an attachment for this forum, or is there a simpler way?
    Last edited by 2CV67; February 12th, 2009 at 03:09 PM.
    Acer Aspire TC-100-007: Multi boot W10 / 22.04 / 18.04 LTS: Canon TS705: Epson V200: also Asus 1015PED: W7 / 18.04 Lubuntu & Lenovo 5-15ARE05: W11 / Ubuntu 22.04

  2. #2
    Join Date
    Dec 2007
    Location
    Troy, NY
    Beans
    137
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Neatest way to post a txt attachment here?

    I just click on the quote button in the online message box and do a copy/paste of the "guts" of the file inbetween the word tags QUOTE and QUOTE.

    Like this:
    Hi I'm a program code

  3. #3
    Join Date
    Dec 2007
    Location
    Troy, NY
    Beans
    137
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Neatest way to post a txt attachment here?

    There's probably a better way, but I don't know it yet

  4. #4
    Join Date
    Jan 2008
    Beans
    4,757

    Re: Neatest way to post a txt attachment here?


  5. #5
    Join Date
    Mar 2008
    Beans
    4,714
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Neatest way to post a txt attachment here?

    Along the same lines as tinivole's suggestion, there is this command:
    Code:
    sudo apt-get install pastebinit
    pastebinit -i /boot/grub/menu.lst -b http://paste.ubuntu.com
    It sends /boot/grub/menu.lst directly to paste.ubuntu.com and returns the url of where you can find it.
    Last edited by unutbu; January 28th, 2009 at 08:49 PM.

  6. #6
    Join Date
    Apr 2008
    Location
    Houston, TX USA
    Beans
    589
    Distro
    Ubuntu

    Re: Neatest way to post a txt attachment here?

    Or you could wrap the contents in [code] ... [/code] tags in the forums here. The results being like this:

    Code:
    This is text
    I could have copied and psted this from my menu.lst or any other text file.
    For attaching, if the file were on your desktop and you wanted it to have the .txt extension, you could right-click the file, go to rename, and add an extension. Likewise, you could change the filename from the terminal:

    Code:
    mv ~/locke/Desktop/myFile ~/locke/Desktop/myFile.txt
    And sent it as an attechment, though I can tell you that myself (and most others, I'd reckon) prefer to see the contents of a file inline with a post here, wrapped in CODE tags. It's one less step we have to go through to examine the file.
    Last edited by Locke_99GS; January 28th, 2009 at 08:38 PM. Reason: mv instead of cp
    Locke
    Try Dropbox, it's FREE! (gratis) http://db.tt/J7Sm9iC
    Try Dropbox experimental build updater http://forums.dropbox.com/topic.php?id=12153

  7. #7
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    1,083
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Neatest way to post a txt attachment here?

    Quote Originally Posted by Locke_99GS View Post
    Or you could wrap the contents in [code] ... [/code] tags in the forums here. The results being like this:

    Code:
    This is text
    I could have copied and psted this from my menu.lst or any other text file.

    ....I can tell you that myself (and most others, I'd reckon) prefer to see the contents of a file inline with a post here, wrapped in CODE tags. It's one less step we have to go through to examine the file.
    OK, that makes sense.
    Overall it's a cleaner, simpler method.

    Thanks for so many good responses to a tiny question!
    Acer Aspire TC-100-007: Multi boot W10 / 22.04 / 18.04 LTS: Canon TS705: Epson V200: also Asus 1015PED: W7 / 18.04 Lubuntu & Lenovo 5-15ARE05: W11 / Ubuntu 22.04

  8. #8
    Join Date
    Jan 2006
    Location
    Not heaven... Iowa
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Neatest way to post a txt attachment here?

    If it's a text-type file (like smb.conf or your menu.lst) I save a copy where I can find it easily, then rename it with a .txt on the end eg. smb.conf.txt.
    Linux User #415691 Ubuntu User #8629
    Iowa Team (LoCo): [Wiki] [Launchpad]
    IRC channel: #ubuntu-us-ia on irc.freenode.net

  9. #9
    Join Date
    Dec 2006
    Location
    Alsace
    Beans
    1,083
    Distro
    Ubuntu 20.04 Focal Fossa

    Question Re: Neatest way to post a txt attachment here?

    Supplementary question:

    How to include an image inside the text, rather than as an attachment?

    I saw somewhere that you should upload to a site like http://www.imagehosting.com/ then paste a reference to it in the "insert Image" box.

    Is that right?
    Is it encouraged (within reason...).
    Is that the best site?

    Any other comments?

    Thanks!
    Acer Aspire TC-100-007: Multi boot W10 / 22.04 / 18.04 LTS: Canon TS705: Epson V200: also Asus 1015PED: W7 / 18.04 Lubuntu & Lenovo 5-15ARE05: W11 / Ubuntu 22.04

  10. #10
    Join Date
    Apr 2008
    Location
    Rotterdam, Holland
    Beans
    301

    Re: Neatest way to post a txt attachment here?

    Again, very simple. Add a picture to a site (say:Flickr). Then copy the url and then paste the url into your message.
    Any site will do as long as they keep your image for a period of time.

    Easy does it.

Page 1 of 3 123 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •