How to receive a file after drag and drop - dropzone.js

I'm trying to build a web application that allows users to drag and drop a file from their desktop (like justbeamit.com) to an "icon" that represents another user, and so that the different user could receive it on the other side. I see that this is possible using the dropzone.js feature, but I want to know is how it's possible to link this with the receiving function so that the other user could download it simply after receiving a notification. I know it sounds complicated, but wish you guys could do good on me by providing knowledge on how to link the drag and drop functionality with a function that allows the other user to receive and download the file. Thanks!

If you are using MVC framework you can get the file from controller as body.request.body.dataParts.get

Related

unity dynamic ui save

I am developing with unity is dynamically generated the ui part of my application.
This ui is created by pulling information from the server.
The ui device I created is being recorded.
Whenever there is a change, I pull ui from the server, but if there is no change, I want it to run directly from the device. I need information on this subject.
Welcome to Stackoverflow Alper. In order to achieve this, you need to store the data and see if there are any changes from the previous launch. The easiest way to do this is by using PlayerPrefs which is pretty straightforward.
PlayerPrefs.SetInt("someName", varName);
and similar if you want to save string:
PlayerPrefs.SetString("someAnotherName", stringVarName);
Then if you want to access it you can use:
PlayerPrefs.GetInt("someName");
PlayerPrefs.GetString("someAnotherName");
Have in mind that PlayerPrefs is not secure and can be accessed very easy outside of your application. If the information you are going to store have something private I suggest you to use SQLite.

Share to download

How to make a share to download system?
Means the visitor must share the content on a social network to get the desired file.
eg.W3layouts.com I must share the article to download the file.
NB: No third party solution. I want to know how it work and create a new one
Thank you
I will just use Twitter as an example:
You would use a Twitter web intent to track the user's click on your widget to share whatever content you want shared, seen in this page: https://dev.twitter.com/web/javascript/events . Use the 'tweet' event to listen for when the user interacts with the button. When you've verified that this event has fired, call the function that downloads the file to the user's computer.
Another thing, take to Google before you go asking it on StackOverflow.

Laravel Progress bar for data upload

I am using laravel 5.1
I want to create a progress bar based on how long the file takes to upload.
I have multiple input fields and want to upload / get a progress bar on my submit button.
What would be the best (or good) approach of doing this.
I basically have a form and already upload some file in the database.
But I do not know how to create a upload progressbar based on this.
I think the best way is to use a library like this one:
https://github.com/zimt28/laravel-jquery-file-upload
I'd probably use something like Dropzone js
http://www.dropzonejs.com/
It would give you the added extra functionality of allowing you to drag and drop files into an upload area. Also allowing for multiple file uploads.

How to write document download event to the external system?

I need to write event to the external system when document in library is downloaded by user.
There is no download event in list.
Should I retrieve this information from audit reports? If yes, how to do it - there is no 'audit web service' in SP.
Maybe is any easier way to do it?
Thanks in advance, Chris.
~ I finally use http module: https://sharepoint.stackexchange.com/questions/14447/logging-document-library-downloads-with-httpmodule
This type of event is not available via the EventHandler framework. There is no download specific event, but there is a view event available from the AuditEntry object. However, there is no way to differentiate between the user clicking the link to view the document and downloading it.
One option I would look at is create a custom action for the document library. This custom action would download the document and write the information required for the external system. To make it completely effective, you will need to disable the ability to right-click and download the link so the user is forced to go through your custom action.

Access and display web sourced data as 'messages' in Outlook

I have data I provide on an http connection that's essentially message information.
I'd like to create an AddOn for Outlook that will consume/interface with that http service as if it were a mail source and display sender, recipient, subject, date etc and then be able to download the actual message and display it.
I envision this service being accessed either via a folder in the left-hand panel. (Uber feature would be if I could drag a message out of this service into the inbox!)
Unfortunately, I don't normally write code on the MS Stack -- I'm a linux guy. So I'm looking for either a follow-the-dots tutorial or an example of something similar. Failing that, I'll hire someone to write this so would love to know the specific skillsets I should be looking for when I contract someone to write it.
EDIT / Additional Thoughts
I have considered changing the web service (or at least creating a middle-man) that spoke IMAP, but only implemented a sub-set of commands (eg, there's no delete or create-folder or move)
One problem with that is that retrieving the actual message needs to be a different opperation (one that has a quota cost to the end user) so I can't just show the message. An option would be to show a "retrieve" button rather than the actual message (I found a great resource here: http://msdn.microsoft.com/en-us/library/dd542625.aspx for doing something like that) and then having that button do the retrieve and then reload itself. Maybe.
As Pekka says this could turn into a big project .. your description is pretty general and as you know the devil is in the detail ! but there are a number of options ..
you may be able to use Folder.WebViewURL Property of a folder that you have created in outlook and show your app via a web app (you can build that on any tech stack you like)
ok drag and drop may become a little tricky to do.
Outlook forms could also be used. A form can call out to your web service and display what you want. There is some info about form on SO but http://www.outlookcode.com/article.aspx?ID=35 is the best place.
Subclassing .. you can then create your own tree under the outlook tree and display whatever you want in the right hand pane such as grids forms etc. these can interact with the normal outlook folders and you can do your drag and drop though you woudl have to create Outlook Items to display them in the inbox. There is a tutorial on the technique http://www.codeproject.com/KB/office/additional_panel_Outlook.aspx though not doing exactly what you want but the technique is sound.
Next up build your own MAPI Message Store Provider which is probally the hardest thing to do on the list.http://msdn.microsoft.com/en-us/library/cc842153.aspx
As I said your question is no functional spec and there are always many ways to skin the cat but 2 or 3 are probaly where you shoudl look at unless it simple enough just a display a web app.
Marcus
Maybe our product could help you in order to avoid writing your own MAPI Message Store Provider.
Kayxo Insight : .Net Custom Framework for MAPI Message Store Provider

Resources