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.
|
|
|
|
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
|
|
|
|
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?
|
|
|
|
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
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 2/7/2012(UTC) Posts: 7
|
I've created a test application, it's in the attached file.
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 2/7/2012(UTC) Posts: 7
|
Hi Pauline,
did you have a chance to look at this?
|
|
|
|
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
|
|
|
|
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.