HTML5 Synchronization Between User and Server - javascript

I am trying to create a HTML5 app that will allow an user to automatically upload files from a user's computer to my server (similar to Dropbox for Windows where file transfers are updated between computer and server in the background).
The user will have around 100+ .csv files in a single folder. The HTML5 app will ask the user to select the folder. Afterwards, the files will be uploaded to the server in the background.
Is this possible in HTML5 using WebSockets or FileStream? Any advice will be appreciated! Thanks.

You can achieve this by using JWebSocket framework.Visit https://jwebsocket.org/. it has got lot of plug-ins and one such plug-in is FileUpload plug-in.http://enapso.org/jwsForum219/posts/list/59.page.Hope this will help you.

Related

How to consolidate two audio files on client side. (Maybe even server side)

(Working in React.js)
Hello developer folks. I'm developing a musical chat application right now where the user can listen to an audio file and then should be able to record over that audio file. The logic consolidates the first audio file and the over-dub together so the user can then send the consolidated audio to an other user.
The audio shall be sent to my server (MongoDB) - where the file will then be stored and distributed to user2.
I'm looking for the easiest way to do that.
For playback of audio files in the chat I'm using wavesurfer.js.
I have not found a lot about consolidating audio files and thought someone hier might know something.
Thank you in advance and thanks for reading.
I found this npm Package https://www.npmjs.com/package/crunker.
Does just what I want :-)

Is there a way to get a full filepath from an input in Html?

I'm developping a web application with ASP Core 3.0 that will be used with Google Chrome.
The user of this app need to be able to specify the location of a file.
I don't need to upload the file I just need the full path of its location. The file can be in different folders on my company network (this folder is accessible by all future users of the app and by the server hosting it).
Is there a way to get this information ? I know that it's not possible to get it via the html5 input type="file" on chrome.
Since my server has access to this repository, I was thinking of doing ajax call to build the path of this file (basically building a light version of an html5 input file) but I was wondering if there were an easier way...
Any idea ?

Guacamole VNC File Transfer

I am using Guacamole HTML5 clientless VNC viewer. I am trying to upload a file via Guacamole over VNC. Is this possible?
I looked at the application's homepage and this function seems possible. There is an event called onfile in guacamole.all.js, but there isn't a code sample to replicate this functionality.
How do I upload a file via Guacamole over VNC?
Guacamole uses SFTP to transfer files back and forward to the computer, so it doesn't transfer files over the VNC connection like TightVNC can. This means that you will have to setup an SFTP server on the computer running the VNC-server to be able to transfer files to the computer. If you have done that, you will have to provide the SFTP server details in your connection details page.
Once everything is setup properly you can start uploading and downloading files. For uploading you need to set a "standard uploading directory" in your connection properties. To upload something to that directory simply drag a file and drop it in the view screen in your browser. A little dialog with the upload process will appear and the file will be transferred to the remote computer!
For downloading open the guacamole menu while viewing your remote computer by pressing ctrl+alt+shift. If everything is setup properly you will see a device which you can browse and select the files you want to download. Good luck with this.
P.S. If the VNC-server is running on a windows machine, look at freeFTPd. It's a free lightweight program that can be setup to start at windows startup. Perfect solution for using with guacamole. If you are running linux it shouldn't be too hard to find an sftp server.

Offline image upload for Meteor.js app

There is a Meteor.js app, which is suppose to stay fully functional in offline mode. This app enables users to upload their images and use those images to create content within the app.
Question - how to approach image upload in the Meteor.js app, so that the app stays fully functional in offline mode?
My thoughts so far:
--There is Meteor Offline Data project, but it is still very much work in progress, and it only works for text content: https://github.com/awwx/meteor-offline-data
--In offline, when adding the image in the app, I could detect offline mode and utilize HTML5 File API for using the image locally
--When online is detected, the image is uploaded to the server behind the scenes
--In online content with images is downloaded to the app and saved for offline usage using App Cache
There are still many things unclear, so any hints are appreciated at this point.
You may want to try collectionFS, https://atmosphere.meteor.com/package/collectionFS, as it make a client side collection that the file is added to. The clientside collection should sink when the internet reconnects.

Using HTML5 file input to select file from web server

Is there anyway I could javascript or just modify the html5 file input tag to select files from my web server? this is a content management kind of problem so security is not an issue, and if possible i would like to restrict it to a particular directory in the web server. Am not trying to upload or download anything, I already have a way of uploading the files to the web server, am just looking for a way to point to them if you will.
Thanks in advance

Categories

Resources