PDA

View Full Version : [CLOSED] how to open file save dialog from click in image ?



jhenriquecosta
Apr 04, 2014, 9:42 PM
hi!
how to open file save dialog from click image control ?

Daniil
Apr 04, 2014, 9:55 PM
Hi @jhenriquecosta,

Do you mean the save dialog which appears if right click an image and choose "Save Image As..."?

jhenriquecosta
Apr 07, 2014, 1:42 PM
I want to upload images from a click on the image component!

i try... and not run!


<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Ext.Net Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />
<ext:FileUploadField ID="FileUploadField1" runat="server" Hidden="true" />
<ext:Image ID="Image1" runat="server" ImageUrl="someUrl">
<Listeners>
<Click Handler="FileUploadField1.fileInput.dom.click();" />
</Listeners>
</ext:Image>
</form>
</body>
</html>

Daniil
Apr 07, 2014, 5:30 PM
Please clarify do you need to upload a file to your server or save to a client machine?

jhenriquecosta
Apr 07, 2014, 7:55 PM
sorry!
upload file to server!

Daniil
Apr 07, 2014, 9:59 PM
I am afraid there is no way to upload a file without a user choosing a file to upload in a standard browser dialog.