Transparent Encryption For File Upload / Download?
Jul 10, 2011
I am working on an ajax application to upload and download encrypted files (AES, 128 bit). The encryption has to be on the client side before sending it to the server.
1. Upload The secret key is stored in a javascript variable during the session. To upload a file, javascript code will show a prompt file dialog and the user will select the file. On hitting submit button a javascript code will call a method in a java applet (with secret key and filename as parameters) that will read the file, encrypt it and sent to the server. I am still coding this but seems to me there will be no problem, the applet even doesn't need to be signed.
2. Download This is where I have the problem.I want the user to click the link, the file should be downloaded, decrypted and opened or 'saved as..'. Is this possible to do in a way that the user doesn't have to do intermediate steps, like 1. Download, 2. Decrypt. 3 Open by the corresponding application ? Right now the idea is to use XMLHttpRequest to download the file into a javascript variable and pass it to the applet, the applet will decrypt and save the file into a temporal directory on the user's computer. After that javascript will present a link that the user will click to open the file. But that are 2 steps and I have to sign the applet to be able to write files. Is there a way to do this as a single process (with an unsigned applet) and at the end to show the 'Save as...' dialog so the user will decide wether to save it or to open with some application?
View 7 Replies
ADVERTISEMENT
Dec 15, 2010
I implemented Malsups jquery form and use it for ajax file uploads. Works fine in FF, but in IE as soon as the ajax has completed the upload IE gives me a File Download box - Security warning. If I click on save it save thereturnedJson object (I do JS call onsuccessto get a file list and display it). If I click cancel or save on the popup has same effect the file still gets uploaded but just looks ugly.
How can I get rid of this? All coming form the same domain, calling from the same domain. This is on a python django project and I am testing it on the dev server.
Its pretty basic jquery nothing to exciting, don't get why IE would cause.
View 4 Replies
View Related
Dec 5, 2011
i have been tasked to create a web page that includes a fading background. (It must become semi transparent once the page has loaded,and remain until a new page is selected. I want to use a similar concept to: [URL]. However instead of fading out to black, i need it to fade out to white (between 10-15% image opacity). I would also need a similar central, transparent, scrollable frame/div (where each page will load up within and like the above link,i need a different background image to each page.
View 1 Replies
View Related
Oct 2, 2011
I am trying to create a way for my users to download some code dynamically from my web page via a file download. Below is the code that i have written so far. It seems to be dying on the iframe but i'm not sure why.
Here is my jquery trigger which is inside my onreadystate function.
$('#export_txt').click(function(e){
alert(LPAjax.ajaxurl + "/download.php");
$.generateFile({
action: "download_txt",
filename: "exportme.txt",
[Code]...
View 1 Replies
View Related
Dec 5, 2011
For a college assignment, i have been tasked to create a web page that includes a fading background. (It must become semi transparent once the page has loaded,and remain until a new page is selected. I want to use a similar concept [URL]. However instead of fading out to black, i need it to fade out to white (between 10-15% image opacity).
I would also need a similar central, transparent, scrollable frame/div (where each page will load up within and like the above link,i need a different background image to each page.
View 1 Replies
View Related
Apr 11, 2009
I need to have a submit input button automatically start a download when clicked, but also redirect to an additional "information" page. Since I'm not sure if this can simply be solved with HTML or must use some Javascript.
View 4 Replies
View Related
Jul 20, 2005
I'm trying to come up with a script and I'm having a heck of a time...
I require users to enter the size (in MB or KB) of the attachment they
wish to transfer/upload. As they enter the number and move over to
the next field (using onBlur or...), I would like a popup/alert window
warning them that this attachment size would take "x" amount of time
based on a speed of 24 kilobits per second (kbps). If they are happy
with the amount of time, I wish to allow them to click OK (to carry on
with the transfer) or Cancel/No to cancel it.
View 4 Replies
View Related
Sep 1, 2011
I'm trying to put in place a file upload validation check. So at the client-side, the User selects a file. Before uploading, at the GUI, if the file exceeds an imposed limit, it will prompt the User that it exceeds the permitted size for upload.
And if it is within the permitted size, the full file path of the file to be uploaded will then be obtained and then used for the actual upload to the Server.
My program is built on EXTJS and Java, running using Tomcat. Browser restricted to Internet Explorer 7 only.
View 1 Replies
View Related
Jun 6, 2011
I have a problem with the latest version of the jQuery Form Plugin (2.80). To be more precise, I guess I am doing something wrong, and with an older version (2.67) somehow it didn't matter.With the old version, the file was uploaded without problems. Now Firefox opens a new Tab on clicking the submit button and nothing is done. Chrome doesn't open a new tab, but also nothing happens. In Wireshark I can see that there is no file attached in the POST message with the older version, the file was sent.My first guess was that my file handling on the server side is erroneous - but on the other hand, when there is no file attached, what should I handle there?
View 2 Replies
View Related
Jun 2, 2011
I am using jquery Multifile upload plugin, I want to show the client a pop messages if he/she crosses certain size while uploading files..
<html>
<head>
<script src="/js/jquery.MultiFile.js" type="text/javascript" language="javascript" target="upload_target"></script>
<script>
[code]....
View 3 Replies
View Related
Aug 17, 2006
I'm using ASP.NET and setting window.location.href in my web page to output an audio file that the user is prompted to download. I would like to provide a link so that the user can download the audio file and an XML file one after the other. I've been experimenting with opening a new
window, but there must be a cleaner way of doing this.
View 1 Replies
View Related
Nov 23, 2005
I need to download - randon size - parts of a file, not the whole file.
Says: I have the zip file test.zip, it is 10 mega bytes long. But I
don't want the 10 mega today. Today I want 5 mega bytes. Tomorrow I
could want more 3 mega bytes of the file, but it is not sure, could be
4 mega bytes. I need to part the zip file in chunks at request. No CGI,
no asp, no php. Only client side scripts.
View 5 Replies
View Related
Feb 24, 2011
i noticed today that if i type in my js file name in the url i get a download box, i have an htaccess on my site so this should not be happening, thats another issue.. my question is, is there a trick to creating a js file that cant be accessed in this manner, i was thinking about adding a php define statement as it comes from one source only, but i wanted to ask first to see if there was something on the js side i could do or is that strictly a htaccess or server side issue..
View 2 Replies
View Related
Mar 30, 2011
I'm wanting a message box to appear when a user clicks on a link that pops up a message. Once they click "OK' on the message box, a file download box pops up letting them open/save the file.
Basically a person clicks on a link for a class. A message box pops up saying "Please print and bring the following papers to class." When they click "OK", the *.pdf file pops up ready to be downloaded.
View 1 Replies
View Related
Aug 30, 2005
I know there got 1 function is fileUpload, the code is like this:
<input type="file" name="filename" size="35">
After that will prompt out 1 dialog box to let user to select file to upload.
*User must select 1 file to upload.
How about If I just want to browse the path? and I do not want to select a file but create a filename by myself?
Actually I just want to specify the path and filename so that later I can create 1 file by using the filename and create the file in that path.
View 1 Replies
View Related
Feb 13, 2011
There is text file save on my pc.i wnat a code which give the solution that after complete the code it should show the that text file and there should be option of download and on click on the download button there should be option of save and cancel and on click on the save there should be option of location so that i could save that file at that location.
View 3 Replies
View Related
Feb 3, 2011
I would like to download an ebook file with the extension .epub. If I use a regular link, I get an error message saying "page not found". I want to make an automatic saveas window comes up.
Can anyone help me with the javascript code.
View 1 Replies
View Related
Oct 29, 2010
I use
$(document).ready(function(){
/* hintergrunbild fade */
$('#beyondLogo').fadeTo(2000, 0.8, function() {
});
});
in order to fade the background of a div. The content in this div I'd like to have without transparency. In IE this is the case, but in Firefox the content also is transparent with 0.8.I tried to apply fade with 1 to the content but that did not work ...
View 1 Replies
View Related
Dec 22, 2005
I would like to create in my site a picture that when a user clicks on
it, a javascript code which determines which file is to be downloaded
to the user, is ran.
My problem is that I do not know how to make the file that was chosen
by the javascript code to be downloaded to the user.
I know how to do it statically (using anchor) what I'm looking for is
how to do it dynamically.
View 6 Replies
View Related
Jul 16, 2010
Is there a way to get jQuery to download a js file in the background without parsing it? I have a CMS with a login form, which may take the user 3-5 seconds to fill in the data. I am thinking that if I can pre-load my js scripts which are used after the login page, then this will make things quicker after they login. Can this, and should this, be done?
View 4 Replies
View Related
Aug 3, 2010
i have a link to a dynamically generated report download. when you click the link it takes a while for the server to do the number crunching and return the file. i need to execute some JS on completion of the file download. is this even possible??
View 5 Replies
View Related
Dec 10, 2009
I am trying to make an xml file download from my website, so the saveAs window will be open, I checked the forum and found the following code. but instead of saving the xml file it saves the html file.
<html>
<script type="text/javascript">
function forceSaveAs (filename){
[code]....
I also try to send the xml with the following header but with no success
print "Content-type: application/octet-stream
";
print "Content-Disposition: attachment; filename=file.xml;"
View 2 Replies
View Related
Dec 4, 2009
I want javascript to download a file automatically in every 3 mins and save it to my server.
Is it possible. What will be the javascript code?
View 1 Replies
View Related
Jul 5, 2011
I have a website which displays routes on a map. The data behind this is held in a MySQL database. What I want to do is to be able to click a button and the current route information would be download in a gpx file (xml variant) for that route, built from the database. I'm using shtml, Javascript and perl. Is it possible? The formatting of the data is not an issue. I am a real novice and have self taught enough to get where the site is today, so please be gentle.
View 2 Replies
View Related
Apr 15, 2010
I am trying to build a script, where the file references get added to an array when downloaded.
I have a slideshow so I want it the image references to be dynamically added to the javascript array. Any ideas how to do this? Is there an event which returns true when download complete
View 1 Replies
View Related
Nov 7, 2001
I am trying to trigger the download of a file from the browser (at the moment a word file!).
But when I supply the link as an '<a href='...'>' html tag the document appears in the browser. Although this is quite good I unfortunately need to open up the download dialog box.
View 2 Replies
View Related