Import URLs to transloadit

Hi,

I’m trying to use this feature of Transloadit (https://transloadit.com/services/file-importing/http-import/) with uppy, but uppy seems to require an uppy-server to handle remote Urls (https://uppy.io/docs/server/). Isn’t there another way?

Thanks a lot,

Víctor

Hi Víctor! Indeed, the Url import in Uppy is a separate feature—it does not currently work together with the Transloadit API. We’re starting to provide a hosted uppy-server that can be used by customers to upload to Transloadit, though; currently in early beta but you’re very welcome to try it out. It’s already in use in the Transloadit example on the Uppy website. You can use it by setting the host option to https://api2.transloadit.com/uppy-server/.

uppy.use(Url, { host: 'https://api2.transloadit.com/uppy-server/' })

These servers are configured to only allow uploads to Transloadit assemblies.

So, there’s not really a way around using uppy-server in this case, but you don’t necessarily have to do the setup work yourself. :slight_smile:

Hope that helps!

Wow, that was very helpful, thanks a lot! It works perfectly.

I think there is a bug when using uppy.addFile with the Url plugin, I’ll open an issue in Github tomorrow just in case (I’m not entirely sure!).

Thanks again!

Víctor

Hi! This seems to be resolved now, right?

Hey there,

Sorry to bother. Suddenly the transloadit uppy-server stopped working, and we got this error a couple of times:

Failed to load https://api2.transloadit.com/uppy-server/url/meta: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '***' is therefore not allowed access. The response had HTTP status code 503. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Are we missing any info we need to send?

this seems to have been a temporary downtime of the server due to service upgrade. Do you mind trying again to confirm if it now works?

Yeah, it’s working now. Thanks a lot!

1 Like

Thanks for reporting and sorry about the trouble!