Git Product home page Git Product logo

Comments (4)

eneifert avatar eneifert commented on June 16, 2024

Hello Brandon,

Could you tell me what the zFile.ContentType is set to? Is it "text/plain"? Here is a list of common content types: http://webdesign.about.com/od/multimedia/a/mime-types-by-content-type.htm

from zendeskapi.

bwgabel avatar bwgabel commented on June 16, 2024

Yes the ContentType is set to "text/plain". I also uploaded a jpg file "Koala2.jpg". The content type on that upload was "image/jpeg" and the results were the same as the text files. The jpg as it was downloaded from the zendesk ticket is attached.

Thanks,
Brandon Gabel

-----Original Message-----
From: eneifert [mailto:[email protected]]
Sent: Tuesday, May 31, 2011 7:13 AM
To: [email protected]
Subject: Re: [ZendDeskApi] Problem uploading attachments (#4)

Hello Brandon,

Could you tell me what the zFile.ContentType is set to? Is it "text/plain"? Here is a list of common content types: http://webdesign.about.com/od/multimedia/a/mime-types-by-content-type.htm

Reply to this email directly or view it on GitHub:
https://github.com/eneifert/ZendDeskApi/issues/4#comment_1266545

from zendeskapi.

eneifert avatar eneifert commented on June 16, 2024

Brandon,

I was able to see your problem and I re-wrote the UploadAttachment method so this is now fixed. Although I never could find out exactly what the problem was, I know it had something to do with RestSharp and ZenDesk not playing nice together. I may submit something to the RestSharp team.

If you get the latest now you should be good to go.

Let me know if you have any other questions,
Eric

from zendeskapi.

bwgabel avatar bwgabel commented on June 16, 2024

Works great. Thanks Eric.

-----Original Message-----
From: eneifert [mailto:[email protected]]
Sent: Friday, June 03, 2011 11:37 AM
To: [email protected]
Subject: Re: [ZendDeskApi] Problem uploading attachments (#4)

Brandon,

I was able to see your problem and I re-wrote the UploadAttachment method so this is now fixed. Although I never could find out exactly what the problem was, I know it had something to do with RestSharp and ZenDesk not playing nice together. I may submit something to the RestSharp team.

If you get the latest now you should be good to go.

Let me know if you have any other questions,
Eric

Reply to this email directly or view it on GitHub:
https://github.com/eneifert/ZendDeskApi/issues/4#comment_1297844

from zendeskapi.

Related Issues (12)

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.