Hi;
I have successfully deployed my Asp .Net MVC 3 application but the "upload file" functionality returns an IO error; which i guess a write access issue.
I have cheked the Allow write-access to file system property under Settings and did a fresh deploy, but no chances. Has anyone any ideas to point me for further action?
Thank you.
#1 Posted by friism Support staff on 08 Jul, 2011 07:45 PM
Placing the files in App_Data works whether that setting is enabled or not. Where on the filesystem are you trying to write? Please be aware that files written are not persisted across multiple instances that your app might be running on, and are wiped on each deploy.
#2 Posted by devoxe on 08 Jul, 2011 07:51 PM
Thank you Michael, i will try your suggestion right now.
I had configured an /uploads folder to the root. But App_Data seems much more relavent
BTW, is the App_Data also wiped out during every deploy iterations?
#3 Posted by friism Support staff on 08 Jul, 2011 07:56 PM
App_Data is wiped too -- yes. We really recommend persisting to S3 or similar, it's really very little work.
friism closed this discussion on 08 Jul, 2011 07:56 PM.
devoxe re-opened this discussion on 08 Jul, 2011 08:18 PM
#4 Posted by devoxe on 08 Jul, 2011 08:18 PM
Thanks Michael;
Altough changing the write folder to App_Data did still not worked, i will
investigate about external storage services as you adviced.
I have cheked the App Harbor AddOns and i guess there is no need for an
extra settings here in the Harbor, am i right?
On Fri, Jul 8, 2011 at 10:59 PM, Michael Friis <
[email blocked]> wrote:
#5 Posted by balexandre on 08 Jul, 2011 08:23 PM
Hi Devrim,
See this topic and read my answer. You will find how to programatically upload a file to Amazon S3.
Fell free to ask for help about this, I currently use this solution.
#6 Posted by devoxe on 08 Jul, 2011 08:32 PM
Hi balexandre;
Thank you for the link.
After a quick search i have found that comparision (tough seems a litle old)
and i think i will check each of them an decide on one of them.
[10-online-storage-apis/]http://blog.programmableweb.com/2007/11/26/10-online-storage-apis/
I will close my Discussion resolved with these notes.
Regards.
On Fri, Jul 8, 2011 at 11:23 PM, balexandre <
[email blocked]> wrote:
devoxe closed this discussion on 08 Jul, 2011 08:36 PM.