473,396 Members | 1,743 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 2813
"Maris Janis Vasilevskis" <ma****@myself.comwrote in message
news:%2****************@TK2MSFTNGP04.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 programmatically.

Mahris

Mark Rae wrote:
"Maris Janis Vasilevskis" <ma****@myself.comwrote in message
news:%2****************@TK2MSFTNGP04.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****************@TK2MSFTNGP04.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
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. ...
3
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"...
1
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...
0
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...
1
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...
3
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
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...
2
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
by: Gorksha | last post by:
How to upload a file without using browse button provided by <input type=file > tag in html..
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.