Giter Club home page Giter Club logo

Comments (4)

 avatar commented on May 21, 2024

Not just S3 but also Rackspace Cloud Files and (when you can get beta access): https://nimbus.io

nimbus.io will be cheaper than S3, and it's from the guys behind SpiderOak (the best online backup solution for the desktop -- at least it was the last time I've reviewed this kind of software).

According to these guys, the APIs of those 3 services are similar -- REST and JSON.

from elefant.

jbroadway avatar jbroadway commented on May 21, 2024

Ah yes, definitely want a general API that wouldn't be tied to a specific cloud storage service. And I'm on the nimbus beta request list, so fingers crossed for me! :)

from elefant.

 avatar commented on May 21, 2024

:) Thank you!

from elefant.

jbroadway avatar jbroadway commented on May 21, 2024

Maybe this can be better done as an add-on (to avoid hard-coding specific backends). Something like this:

  1. Add a proxy_handler setting (Off by default) to the filemanager app's config.
  2. If a proxy handler is set, return file links as /filemanager/proxy/path/to/file.txt otherwise keep using files/path/to/file.txt
  3. The proxy handler would basically just pass the info to another handler like this:
<?php

echo $this->run (
    $appconf['General']['proxy_handler'],
    array (
        'file' => join ('/', $this->params)
    )
);

?>

Using the above, an aws app could implement an aws/s3 handler that did something like this:

<?php

if (/* file has been transferred to s3 */) {
    $this->permanent_redirect (/* s3 location */);
}

/* initiate transfer of the file to s3, and for now: */

$this->redirect ($data['file']);

?>

from elefant.

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.