473,395 Members | 1,931 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,395 software developers and data experts.

Pass Web FileObject to a class

All
I have a file HTML object, I want to pass this object to a class so I can write a common method for uploading files.
Idea is to avoid coding file saving in the forms submit button, but call a method that can process the file that just got submitted.

Is this possible at all? Any idea on how to handle this issue?

TIA

Nov 18 '05 #1
2 1139
"kaushas" <ka*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
All
I have a file HTML object, I want to pass this object to a class so I can write a common method for uploading files. Idea is to avoid coding file saving in the forms submit button, but call a method that can process the file that just got submitted.
Is this possible at all? Any idea on how to handle this issue?


Do you mean that you want to pass the "file HTML object" to a method of a
class? Just pass it. What problem are you having when you try to do this?
Can you post some code that reproduces the problem?
--
John Saunders
johnwsaundersiii at hotmail
Nov 18 '05 #2
Sorry
I should have been more specific. I was looking for the object type that I needed to define in the method signature.... and then I answered my own question -> it has to be the HtmlInputFile type that needs to be passed to the method... duh
thanks
"John Saunders" wrote:
"kaushas" <ka*****@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
All
I have a file HTML object, I want to pass this object to a class so I can

write a common method for uploading files.
Idea is to avoid coding file saving in the forms submit button, but call a

method that can process the file that just got submitted.

Is this possible at all? Any idea on how to handle this issue?


Do you mean that you want to pass the "file HTML object" to a method of a
class? Just pass it. What problem are you having when you try to do this?
Can you post some code that reproduces the problem?
--
John Saunders
johnwsaundersiii at hotmail

Nov 18 '05 #3

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

Similar topics

9
by: Jay Douglas | last post by:
Hello, I am needing to pass a class object (this) by reference to a method in a different class. When I do the following code I get the error (Cannot pass '<this>' as a ref or out argument because...
6
by: kath | last post by:
hi everyone......... I have a task, I have fragmented the task into subtask. I have planned to create a class to each subclass and one parent class to handle the sub tasks. Each subclass are...
12
by: raylopez99 | last post by:
Keywords: scope resolution, passing classes between parent and child forms, parameter constructor method, normal constructor, default constructor, forward reference, sharing classes between forms....
2
by: rijaalu | last post by:
I am designing a matrix class that performs addition, multicpication, substraction and division. When ever i complie the code it shows an error. include <iostream> using namespace std; class...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...
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.