Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Nadya  
#1 Posted : Wednesday, February 8, 2012 9:34:11 PM(UTC)
Nadya

Rank: Newbie

Groups: Member
Joined: 2/7/2012(UTC)
Posts: 7

Hi,
I'm trying to integrate Uploader with my ASP.NET application.
For me, it's not acceptable if files will be saved to disk so I'd like to get HttpFileCollection like in a standard file upload and handle the rest myself. How can I do this?

And another question: how can I set the maximum file size to upload?

Regards,
Nadya.
p.shirykalova  
#2 Posted : Wednesday, February 8, 2012 9:56:14 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Hi Nadya,

Image Uploader sends files to server in a POST request. Parsing the request on server side and saving uploaded files to disk/to database/ elsewhere can be implemented as you wish. Here are basic instructions on Parsing POST Request in ASP.Net Control. Server scripts are completely up to you, you can modife them as you wish.

Image Uploader allows to restrict maximum upload size as well as maximum size of single file. Please read Setting Limitations for size and number of files for more details.

Feel free to contact me if you have any additional questions.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
Nadya  
#3 Posted : Wednesday, February 8, 2012 10:08:05 PM(UTC)
Nadya

Rank: Newbie

Groups: Member
Joined: 2/7/2012(UTC)
Posts: 7

Hi Pauline,
thanks for your reply. I'e already tried to use the code from here: http://www.aurigma.com/d...t.htm#parsingPostRequest but this line HttpPostedFile sourceFile = Request.Files[string.Format(PostFields.File, 0, i)]; returns null so I can't get the original file. Any suggestions?

p.shirykalova  
#4 Posted : Wednesday, February 8, 2012 11:07:42 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Nadya,

Any chance I can get your code? Please provide me with the link to your Image Uploader page (login/password if any)and share your server script. Alternatively you can create sample application so I can test it locally.

Please submit new support ticket and post login information there.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
Nadya  
#5 Posted : Wednesday, February 8, 2012 11:22:04 PM(UTC)
Nadya

Rank: Newbie

Groups: Member
Joined: 2/7/2012(UTC)
Posts: 7

I've created a test application, it's in the attached file.
File Attachment(s):
AurigmaImageUploaderWeb_New.zip (4,543kb) downloaded 5 time(s).
Nadya  
#6 Posted : Thursday, February 9, 2012 6:59:28 PM(UTC)
Nadya

Rank: Newbie

Groups: Member
Joined: 2/7/2012(UTC)
Posts: 7

Hi Pauline,

did you have a chance to look at this?
p.shirykalova  
#7 Posted : Thursday, February 9, 2012 11:39:29 PM(UTC)
p.shirykalova

Rank: Advanced Member

Groups: Member
Joined: 7/13/2011(UTC)
Posts: 286

Thanks: 6 times
Was thanked: 31 time(s) in 31 post(s)
Nadya,

Sorry for this delay.

The problem is that you haven't specified any Converter. In other words you don't actually add any files to your request.
Please read Configuring Files to be uploaded topic for more details.

Feel free to contact me if you have any questions.
Best regards,
Pauline Shirykalova
Aurigma Technical Support
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.