Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Problem)

We have several complex InfoPath forms in production. Got a new requirement for one of them: Client needs to be able to upload large files to SP libraries using this IP form (as file attachments).

Caveat)

Although it is technically possible (incrementing user session data -to allow large files- and moving programmatically the attachment to a SP library -to don't blow up the form-), it seems like it is not recommended because of the performance impact on the farm [1].

Looking for solutions)

Thus, we are thinking about how can we manage this situation (leveraging the already designed InfoPath form). We have thought about several alternatives:

1) "Embedding" a FileUpload ASP.NET control within the form.

2) Simply put a link pointing to an ASP.NET page containing the FileUpload control.

Problems with the solutions)

1) I think it's not technically possible to upload files from InfoPath without using the user/form session storage (even if it were possible to embed the FileUpload control within the form).

2) Since we want to know if the user has uploaded a file -and, in that case, which file it was- (to insert the proper reference inside the form), we would need some kind of "feedback" coming back from the ASP.NET page to the form. [It would be like a synchronous call, waiting for the task to be done ... and then informing about the results of it].

Anyone can give me his/her two cents? I have been reading/thinking for a while ... and wasn't able to come with a feasible solution (I mean, any other than reimplementing the whole form from scratch without using InfoPath technology).

Thank you very much in advance!!

[1] http://blogs.msdn.com/b/jorman/archive/2011/10/18/performance-impact-of-file-attachments-in-infopath-forms.aspx

share|improve this question
    
Don't want to change your requirement? If to upload files to sharepoint library then it also has hard limit (2 GB) and by default 50 MB which can be changed from Sharepoint side The problem is that Sharepoint stores them in content MSSQL database under the hood. I do not beleive that it is good to store big files in either Sharepoint or in database which you cannot directly configure –  Gennady Vanin Геннадий Ванин Feb 13 '13 at 10:45
    
The problem exposed here is not to store that documents in a SP library (I agree it's not a good idea, though). Question is about workarounds in order to upload files from an InfoPath form without using the user/form session temporal storage. Anyway thanks for your comment Gennady Vanin! ;) –  Charles McAriba Feb 13 '13 at 10:54

1 Answer 1

Well, this is not the answer but also a little heavy for a comment...

Don't want to change your requirement?
If to upload files to sharepoint library then it also has hard limit (2 GB) and by default 50 MB which can be changed from Sharepoint side The problem is that Sharepoint stores them in content MSSQL database under the hood. I do not beleive that it is good to store big files in either Sharepoint or in database which you cannot directly configure

I would have stored big files in the file system... Here is an article about:

Update:

There are multiple locations where it should be adjusted:

and I am not sure that they eventualy help

I would have asked this in Microsoft forum:

where the questions are being answered by Microsoft workers. IMO, they are trying to answer each question there and when they cannot, then forward it to more qualified experts until finding an eventual answer, be it lucky or not

share|improve this answer
    
The problem exposed here is not about the final location where documents are stored (although I agree it could be problematic to keep large files inside the DB). Question's goal is to find any workaround able to upload files from an InfoPath form without using the user/form session temporal storage. Anyway thanks for your time man! ;) –  Charles McAriba Feb 13 '13 at 11:36
    
I updated my answer –  Gennady Vanin Геннадий Ванин Feb 14 '13 at 2:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.