473,773 Members | 2,345 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

File upload without Input type=file

Hi,

I create a binary file on client side using ActiveX.
Now, I need to upload it.

First idea - hidden Input type=file
Does not work, because value is read only.

A quickly made working solution:
Visible input type=file
Before post, I copy file name to clipboard and paste into input field (ActiveX used to paste).
I do not like it because client does not need this visible input and "Browse" button.

Currently, I try to make a choice between two possibilities.
Both seem to be rather complex, and I have problems with performance estimation
(a typical file size is 1-2 M).

First - read created file in a hidden text field, and save after post.
The problem is in encoding and decoding (the file is binary).

Second - create independent post with XMLHTTP.

Any suggestions? Another ideas?

Thank you,
Mahris
Jul 28 '06 #1
3 2828
"Maris Janis Vasilevskis" <ma****@myself. comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Any suggestions? Another ideas?
http://www.google.co.uk/search?sourc...22+file+upload
Jul 28 '06 #2
Thank you, but it is not the thing I need.
It returns a lot of suggestions about using input type=file.
I need a solution without this control, or a trick allowing to set client side file name programmaticall y.

Mahris

Mark Rae wrote:
"Maris Janis Vasilevskis" <ma****@myself. comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Any suggestions? Another ideas?

http://www.google.co.uk/search?sourc...22+file+upload

Jul 28 '06 #3
You already have an ActiveX control on the client, which you have created.
The control can do the uploading all by itself.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Chicken Magician

A man, a plan, a canal.
a palindrome that has gone to s**t.
"Maris Janis Vasilevskis" <ma****@myself. comwrote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Hi,

I create a binary file on client side using ActiveX.
Now, I need to upload it.

First idea - hidden Input type=file
Does not work, because value is read only.

A quickly made working solution:
Visible input type=file
Before post, I copy file name to clipboard and paste into input field
(ActiveX used to paste).
I do not like it because client does not need this visible input and
"Browse" button.

Currently, I try to make a choice between two possibilities.
Both seem to be rather complex, and I have problems with performance
estimation
(a typical file size is 1-2 M).

First - read created file in a hidden text field, and save after post.
The problem is in encoding and decoding (the file is binary).

Second - create independent post with XMLHTTP.

Any suggestions? Another ideas?

Thank you,
Mahris

Jul 28 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5468
by: Dave Smithz | last post by:
Hi There, I have a PHP script that sends an email with attachment and works great when provided the path to the file to send. However this file needs to be on the same server as the script. I want to develop a webpage where people can send attachments that are stored on their local PC.
3
6189
by: Roberto | last post by:
I have the following problem: I have the following form client side: <FORM.......> <FORM action="./WZUpload.asp" method="Post" enctype="multipart/form-data" WIDTH=100%> <INPUT Type="file" name="UpFileName" STYLE="{Width:400px}"><BR>
1
10885
by: Axe | last post by:
Here's the problem: I've got an ASP.NET (C#) web page that has a single <input type=file> control on it for uploading a file. The way the code works is that the uploaded file is then parsed for the path and file name. I then save the posted file to a temporary directory on the web server (for later processing). I then open up a file stream and stream reader and read a related file into a string that is in the posted file's same directory...
0
268
by: John Scalco | last post by:
Hi, I was wondering whether there is a way to upload a file to the server - without using the <input type='file'...> bit. I'd just like to display a 'Save' button and then save the document to the server. thanks, john
1
2182
by: Brian Henry | last post by:
When I use the file upload control <input type = file> and try to upload an exe file it errors, how do i get it to allow exe file uploads so I can display a frendly warrning message about they might be dangerous? thanks!
3
1195
by: C | last post by:
Dear All, May I know how I can let user upload files and my aspx can save the file to the destined directory? Thanks a lot!~ Carlos
3
2539
by: Sarav | last post by:
Hi All, I need to upload an XML file via an client side ActiveX control. I searched the web but everywhere got the samples of using file control alone. How can I upload a file into my web server without using the <input type ="file" ....> control. I need the same for Download also. Without displaying the Save as dialog box. Why I am asking this is I am going to handle this with my Client side ActiveX control.
2
15851
by: ssriram | last post by:
Is there a way to apply style to form field input type="file" (file upload component) If so, how? Thanks, Sunitha Sriram -- ssriram
6
11767
by: Gorksha | last post by:
How to upload a file without using browse button provided by <input type=file > tag in html..
0
9621
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6717
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4012
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2852
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.