How to delay the upload progress of Drap & Drop uploader - file-upload

Let's say, I have a form, with a few input fields and a drag and drop upload area (dropzone.js). My attempt is, in lieu of starting uploading right away after dropping file into the drag and drop area, I want to, like, display the file there, and when I click the submit button of the form, it will be uploaded along with submitting the form information.
Is is possible with drag and drop?
Thanks in advance.

Use autoProcessQueue:false and
$('#upload-button').click(function(){
myDropzone.processQueue();
});
this will work.

Related

Should I upload selected files before the user submit the form?

I'm sorry for my english.
I have a question, I have a form that contain a file input and other text inputs, when the user selected an image and filled other inputs in the form , should I upload the file to the server before user actually hit the submit button, or when he hits the button. If I should upload the file before then how I gonna clean up the unnecessary files if the user doesn't complete the form and didn't hit the submit button or he close the browser before submitting the form .
Sorry again for my english
Both are OK, depends on the business logic.
For better UX, upload it before feels much faster, but in the other hand, much more complex to develop. On the backend side, for example, you might have a cron job to delete all images that was upload and not used(eg: user left the site). Also in some case you need to create the form first to get it's ID.
By uploading when the user click the submit button, is much easier to develop.
If you are new, i'd recommend to upload only when the user click on the submit button.

Generate file with VBA on mouse down and allow user to drag file to explorer or another app

Is there any way to generate a file on mousedown (of a button), that would then be attached to the curser the same way it would be if you clicked and dragged from explorer? allowing the user to basically drag and drop the "button" to an upload form in a browser?
I would assume the file would have to be generated and saved to a temp location, then the curser would be "passed" the file.
I am not looking for a final solution, just an answer about wether it is possible and maybe a lead on where to start, as I have tried searching but its not an easy thing to search for as all results point to dragging INTO excel/access.

Would like a script that puts a checklist into a photoshop file - possible?

I'd like to run an action that places text into the file. It would be a checklist of things for my employees to cross reference before saving out a file. The only way I can think to do this would be to somehow place a text document into the file? Is there anyway to create a script that does this so that every time I set up a file I can run it?
Thanks in advance.
My idea is first create your checklist in photoshop and save as a jpeg, transparent png, or psd.
Open a Photoshop project you want to apply the checklist to.
Go to Window > Actions (Alt + F9)
In the Actions Window, click the Create new set button, Name it Checklist.
Click the Create new action button, name it Import.
Click Record.
Drag and Drop the Checklist Jpeg you saved into your project.
Click the Stop button.
It will add Place to the Actions.
You can save your Actions to a file.
Replay that Action in any Project to import the Checklist to it.
If you want to go a step further and have the text be editable, if you saved as psd.
While recording
Right Click the Checklist Layer (Which has been turned into a Smart Object).
Click Edit Contents.
Drag and Drop the Text back over into your project.
Close out of the Edit
Delete the old Smart Object.
Click Stop.

Disable user from saving .aspx content from browser by using "saving as" option

I have a .net website.
I need to disable the save as option from browser so that the user cant save some of the website pages in order to protect their content.I did disable right click.But user can select save as from browser's menu.
Is it possible to do that?
It is difficult to lock down a website by disabling the save button. What is to stop a user just copying the text and pasting to another document. Right clicking an image and saving. Then there are differences between browsers etc. If you need to protect you information you may need to look at creating and displaying PDFs but this is also not an easy thing especially if the site is dynamic.
What you want is impossible. If the user is able to read the information on his/her screen, there is always an option to copy the content.
How would you stop the user from taking a picture from his/her screen with a digital camera for example?

How to make sure users can only download file from the attachment control but not be able to upload or remove it

I'd like to create a read-only view in the infopath.However when I disable the attachment control ,user can not download the file at all.How to make sure users can only download file from the attachment control but not be able to upload or remove it.
If you are customizing a SharePoint List form, you will not be able to set the File Attachment control to read only. However, I was able to work around this, and this will work for you even if it's just a regular form, by using repeating sections with hyperlink controls inside.
In the Fields pane, click on Show Advanced View
Expand Attachments so you can see the attachmentURL field
Drag attachmentURL into the form and choose Repeating Section with Controls
Click in the section and press CTRL-K to insert a Hyperlink
Enter . in Data Source for Link to
Enter . in Data Source for Display
There are some gotchas and workarounds for some problems you may encounter. See more details on my blog post http://vincepangan.com/?p=220
context menu -> Properties, there is a check box (the first one) on the first tab, make sure it is not checked.
EDIT: If your view is read-only, you cannot download the attachment. The workaround is to clear the read-only checkbox of the view, and activate the read-only on all other controls. The attachment control can be configured to not allow upload/modification of the attachment. This means that in order to upload or modify an attachment, you'll need an other view.
See also entries on msdn:
http://social.msdn.microsoft.com/Forums/en/sharepointinfopath/thread/1106f090-7767-431f-a699-b81c1173c2ee
http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/36c07bd7-a5ba-4fa0-b992-e9a94103dbf4
http://social.technet.microsoft.com/Forums/sr-Latn-CS/sharepoint2010customization/thread/412e80ce-badb-4467-a2d1-7e1696774058