GithubHelp home page GithubHelp logo

Comments (3)

homm avatar homm commented on June 5, 2024

CDN can't return 404 based on file type. File from this link normally uploads and downloads from CDN. If you can't download file after upload, the problem can be in other place, but not in file type.

from uploadcare-widget.

ashtuchkin avatar ashtuchkin commented on June 5, 2024

Just tried to upload this link on the main page http://uploadcare.com/ (right under 'see how it works'). The file is uploaded, but no cropping interface is shown, nor a preview picture.

https://upload.uploadcare.com/info/ about this file returned:

{
  "file_id": "65382c91-1df3-4ba4-a1d4-ad4b23d48d17", 
  "is_stored": false, 
  "done": 68666, 
  "uuid": "65382c91-1df3-4ba4-a1d4-ad4b23d48d17", 
  "original_filename": "unnamed.webp", 
  "is_ready": true, 
  "image_info": null, 
  "is_image": false, 
  "total": 68666, 
  "size": 68666
}

As you see, is_image is false, so I can presume that uploadcare doesn't recognize it as a picture.

You're right, the image can be downloaded as http://www.ucarecdn.com/65382c91-1df3-4ba4-a1d4-ad4b23d48d17/

It seems the problem is here because I'm using the following code:

uploadcare.openDialog(null, {
    imagesOnly: true,
    previewStep: false
}).uploadDone(function(info) {...}

and the uploadDone function is not called.

from uploadcare-widget.

homm avatar homm commented on June 5, 2024

Now it should work.

from uploadcare-widget.

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.