On Tue, Nov 26, 2019 at 9:23 AM brucet <brucet.ci...@gmail.com> wrote:
> Jean-Paul, > > > > Can you elaborate on what you mean by "asynchronous"? > > > > PHP does not directly support asynchronous operations so I used the term > loosely. > > > > Nextcloud includes a stream package that does callbacks on php streams. > This is a link to the icewinds php stream wrapper which is included in the > nextcloud code: > > https://github.com/icewind1991/Streams > > > > This library supports callbacks to provide updated status in the web UI > when performing reads / writes on a php stream. This functionality works > with http put / get. I am using this functionality for file downloads from > Tahoe-LAFS by using http get. I would like to do the same for file uploads > to Tahoe-LAFS by using http put. > Does that mean you want to be able to do an HTTP PUT to start an upload and then poll the upload status with HTTP GET? If not, what does your ideal interaction between Nextcloud and Tahoe-LAFS look like? > > > Bruce T > > *From: *Jean-Paul Calderone <jean-paul+tahoe-...@leastauthority.com> > *Date: *Monday, November 25, 2019 at 6:38 PM > *To: *Bruce Thompson <brucet.ci...@gmail.com> > *Cc: *"tahoe-dev@tahoe-lafs.org" <tahoe-dev@tahoe-lafs.org> > *Subject: *Re: Uploading files with http put > > > > Can you elaborate on what you mean by "asynchronous"? > > > > On Mon, Nov 25, 2019 at 7:28 PM brucet <brucet.ci...@gmail.com> wrote: > > Never saw a response to this. Does anyone have any pointer of where to > look for an answer to my question below? > > > > Thanks, > > > > Bruce T > > > > *From: *Bruce Thompson <brucet.ci...@gmail.com> > *Date: *Friday, November 22, 2019 at 9:08 AM > *To: *"tahoe-dev@tahoe-lafs.org" <tahoe-dev@tahoe-lafs.org> > *Subject: *Uploading files with http put > > > > > > I am writing a Tahoe-LAFS plugin for Nextcloud and close to having it > completed. The plugin puts Tahoe-LAFS on even footing with other cloud > storage systems that have been integrated with Nextcloud such as: Amazon S3 > and Swift. > > > > The problem I am having is I need to support asynchronous uploading of > local files to Tahoe-LAFS. I have not found a way to do this using the > “tahoe cp” command. However, if I use an http put to perform the upload > then I can support asynchronous uploads in Nextcloud. > > > > I am using the “tahoe” command from the plugin so I can use any tahoe > command that completes in a relatively short period of time. Is there a > simple way for me to create a placeholder tahoe URI that I can use to > perform an http put with to perform an upload? > > > > Thanks in advance, > > > > Bruce T > > _______________________________________________ > tahoe-dev mailing list > tahoe-dev@tahoe-lafs.org > https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev > >
_______________________________________________ tahoe-dev mailing list tahoe-dev@tahoe-lafs.org https://tahoe-lafs.org/cgi-bin/mailman/listinfo/tahoe-dev