This is a migrated thread and some comments may be shown as answers.

Radupload temporary save

4 Answers 129 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
xyz
Top achievements
Rank 1
xyz asked on 12 Feb 2009, 07:34 PM
Hi,
I am using RadUpload for the first time. I want users to browse a file and click upload button. when the user clicks on upload button it should temporarily save that file in an array or a collection. After the user has uploaded all the files then he clicks on save button where it actually saves the all the uploaded files at once in a folder adn also in the database. Can anyone help me how to do this?
Thank you

4 Answers, 1 is accepted

Sort by
0
Yvette
Top achievements
Rank 1
answered on 28 May 2009, 07:54 PM
Did you accomplish it,I have a similar issue,can you guide me?

Yvette
0
xyz
Top achievements
Rank 1
answered on 29 May 2009, 01:15 PM
Yes. I created a static arraylist and added the files as the user hits the upload button. when the user clicked on final save button, i got the list from arraylist and saved in the database.

for(radupload upload in arraylist) -- used this to get the filename and the file.

i donno whether this is the best way to do or not but i have solved my issue

Thank you.
0
Lenny_shp
Top achievements
Rank 2
answered on 05 Jun 2009, 01:20 PM
It's not scalable if the files are large, you are going to run out of memory saving the actual file content to arraylist.
0
John
Top achievements
Rank 2
answered on 18 Jun 2009, 01:53 AM
What would be a better solution to this then? We would like to allow the user to crop the uploaded image first before saving to the dataqbase, what is the best way to do this? To use Inputstream to display the preview image? or Better to save to a temporary location as file?
Any help would be appreciated

Tags
Upload (Obsolete)
Asked by
xyz
Top achievements
Rank 1
Answers by
Yvette
Top achievements
Rank 1
xyz
Top achievements
Rank 1
Lenny_shp
Top achievements
Rank 2
John
Top achievements
Rank 2
Share this question
or