Link to home
Start Free TrialLog in
Avatar of Knowledge-Dimension
Knowledge-Dimension

asked on

File Upload Control with refresh on document

I have multiple file upload controls on my form over the web.

when I click into a dialog list with a refresh document on keyword change , it refreshes the form but loses the file upload value selected.

Please help.

Avatar of madheeswar
madheeswar
Flag of Singapore image

I think that is the default behaviour.

May be you should use AJAX to fetch data for another field when u do a refresh.

Else pass those Upload control values to a cookie and store it. Once refreshed, you can fetch them.
Avatar of Knowledge-Dimension
Knowledge-Dimension

ASKER

I am not familiar with AJAX , please can you explain to me how that works.

I have not worked with cookies either... can a user disable the use of cookies on their machine ?
Hi Guys.... The R7 mail template has a different method of upload . It writes it to a text field. & on save it uploads it
does anyone know how this is done so I can do the same in my application.
You can also do the samething..

When the file is selected using FileUpload control, you can get handle to the upload control by providing id to that.

Just get that path of the file and store it in a text field.


Let us see if someone has other ideas.
I can do that but how does it upload the file once in the text field ?

Thanks guys.

I really appreciate the help
I think you got it wrong. Just u need to pass the path of the attchment to the Upload control. While saving it takes care of attaching file(s).
Hi....

I have tried doing that but have had no success. I have been told that you cannot populate the file upload control with a value & this is due to security reasons.

I can get the attachment paths into a text field as done in the mail template , but I have no clue how to save those attachments to the document.

if I try to do it on save , it will probably search the server itself for the files .

Please help me... this is really urgent.

Thanks guys for all your comments & help thus far.
ASKER CERTIFIED SOLUTION
Avatar of madheeswar
madheeswar
Flag of Singapore image

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