Link to home
Start Free TrialLog in
Avatar of rahulnimje
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
ASKER CERTIFIED SOLUTION
Avatar of ayha1999
ayha1999

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rahulnimje
rahulnimje

ASKER

That's the whole issue
when I write
 fn = Path.GetFileName(YourfileFieldName.PostedFile.FileName)

the value in fn is NULL

HI,

culd u pls. explain the problem?

ayha
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