Code Monkey home page Code Monkey logo

Comments (6)

hfaran avatar hfaran commented on September 26, 2024

Please provide more details or examples

from slack-export-viewer.

derekbruff avatar derekbruff commented on September 26, 2024

I'm having the same problem. I'll see things like "@derek uploaded a file:" but there will be nothing after the colon. No image, no link to an image, just nothing.

from slack-export-viewer.

hermanbanken avatar hermanbanken commented on September 26, 2024

Actually there is, but it is non-valid HTML:

<div class="message">
                <div class="username">redacted</div>
                <div class="time">2017-05-04 12:00:00</div>
                <div class="msg">@redacted uploaded a file: <https: domain.slack.com="" files="" redacted="" ccnjlkjkio="" somejsonfile.json|some="" some.file.json=""></https:></div>
            </div>

Corresponding JSON:

[
    {
        "type": "message",
        "user": "redactedUID",
        "text": "<@redactedUID|redacted> uploaded a file: <https:\/\/domain.slack.com\/files\/redacted\/redactedUID\/filename.json|Very Important.Postman_collection.json>",
        "ts": "1493898005.425392",
        "pinned_to": null,
        "subtype": "file_share",
        "username": "redacted",
        "file": {
            "id": "redactedUID",
            "created": 1493898000,
            "timestamp": 1493898000,
            "name": "Very Important.postman_collection.json",
            "title": "Very Important.postman_collection.json",
            "mimetype": "text\/plain",
            "filetype": "javascript",
            "pretty_type": "JavaScript\/JSON",
            "user": "redactedUID",
            "mode": "snippet",
            "editable": true,
            "is_external": false,
            "external_type": "",
            "size": 2856,
            "url": "",
            "url_download": "",
            "url_private": "redacted",
            "url_private_download": "redacted",
            "thumb_64": "",
            "thumb_80": "",
            "thumb_360": "",
            "thumb_360_gif": "",
            "thumb_360_w": 0,
            "thumb_360_h": 0,
            "permalink": "redacted",
            "edit_link": "redacted",
            "preview": "{\n\t\"variables\": [],\n\t\"info\": {\n\t\t\"name\": \"Very Important\",\n\t\t\"_postman_id\": \"cdf1861b33c01e\",",
            "preview_highlight": "redacted",
            "lines": 83,
            "lines_more": 78,
            "is_public": false,
            "public_url_shared": false,
            "channels": [],
            "groups": [],
            "initial_comment": {},
            "num_stars": 0,
            "is_starred": false
        },
        "upload": true
    }
]

from slack-export-viewer.

benwarfield-usds avatar benwarfield-usds commented on September 26, 2024

The changes in benwarfield-usds#1 are intended to address at least some of these issues, and make it easier to address others—no formal PR to this repo yet because it's dependent on #76 and would be confusing to look at without that being merged.

from slack-export-viewer.

onewhaleid avatar onewhaleid commented on September 26, 2024

Has any progress been made on this? I have "fixed" the issue on my fork, but my code is pretty dirty (it relies on overriding the CSS within the img tag).

from slack-export-viewer.

hfaran avatar hfaran commented on September 26, 2024

@benwarfield-usds I'm assuming you gave up on your attempt on this?

I actually don't have a good repro of this because in the archive I'm testing with (one of my own teams), I don't have any previews that say "x uploaded a file:", for me the images do just work. So I probably don't have the same kind of content somehow that you guys have.

from slack-export-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.