rahulnimje
asked on
Upload file
Hello,
I have created a application in VB .NET to upload a file to a server. I am using file field from the HTML components in my application. I am using plumtree portal to upload my code. My problem is that the file field doesnt work in plumtree, by that I mean that after selecting a file in the file field the value is not captured. It returns null value. But if I run the same code on local machine everything work fine. I would like to know is there another way selecting a file if I am not using the file field.
Regards,
Rahul
I have created a application in VB .NET to upload a file to a server. I am using file field from the HTML components in my application. I am using plumtree portal to upload my code. My problem is that the file field doesnt work in plumtree, by that I mean that after selecting a file in the file field the value is not captured. It returns null value. But if I run the same code on local machine everything work fine. I would like to know is there another way selecting a file if I am not using the file field.
Regards,
Rahul
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
HI,
culd u pls. explain the problem?
ayha
culd u pls. explain the problem?
ayha
ASKER
I tried to run the code on local machine and it works fine. I am using a plumtree portal to make the application available to the users. After I upload the file on plumtree portal everthing goes fine except that it gives an error
"NULL Reference"
It is not able to capture the value from the file field.
I tried writing the way you told but still didnt help.
Regards,
Rahul
"NULL Reference"
It is not able to capture the value from the file field.
I tried writing the way you told but still didnt help.
Regards,
Rahul
ASKER
when I write
fn = Path.GetFileName(YourfileF
the value in fn is NULL