question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File upload to external image server

See original GitHub issue

Hi @rikschennink,

Very Sorry to bother you again, I am trying to implement custom upload to my image server. My image server accepts the image name, dimensions, dataURL via POST API and returns a unique server file name for the uploaded image. I have attempted to implement the handler function but no success, is there an example that you can show us on how this works?

I have seen someone asked if FilePond would work with Amazon S3. It seems Amazon S3 and other custom image servers do not support the serverId feature in FilePond. Does this mean other operations such as revert, abort, restore are impossible with these servers? Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
rikschenninkcommented, Mar 26, 2018

Hi @pathvine!

No worries.

The serverId is a unique identifier returned by the server, it can be the filename the file id, as long as it identifies the file to the server. In your situation, this value “returns a unique server file name” should do it, FilePond remembers it and then automatically passes it to the revert or restore method. You can then override those methods and do with it as you please.

I’ll set up a custom XMLHttpRequest example to illustrate this better.

1reaction
JoaquimLeycommented, May 9, 2018

I will open an issue over there to keep this one scoped and not polluted for people coming in the future 😉. Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

uploading image on an external server - Stack Overflow
To upload a image to the server, it is highly recommended to use web services. This is explained with a neat example in...
Read more >
Solved: Upload images to external image server (inhouse im...
Hello,. I've never used this, so I don't have a working example. But basically the "Manual publication mode" allows you to use a...
Read more >
How do you upload your files to a web server? - MDN Web Docs
To publish on the web, put your files into the Public/htdocs directory. Let's first look at http://demozilla.examplehostingprovider.net/ — as ...
Read more >
Server side file upload - ImageKit.io Docs
This is used when a file is being uploaded from the browser. - base64 - Base64 encoded string of file content. - url...
Read more >
Upload images in external server - Drupal Answers
Upload images in external server ... I work between two servers, and I use one for development and the other for deployment. It's...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found