[英]Can application create file in AWS Elastic Beanstalk?
Our web application is deployed to Elastic Beanstalk instance and from the code, I want to create a text/csv file. 我们的Web应用程序已部署到Elastic Beanstalk实例,并且我想通过代码创建一个text / csv文件。
do I need to have permission to create a file? 我需要获得创建文件的权限吗? or is it enabled by default?
还是默认启用?
How should I give permission to create a new file? 我应该如何授予创建新文件的权限?
Its enabled by default. 默认情况下启用。
In my Java application (running on EBS Tomcat) I use this system property to identify a temporary directory to write to: 在我的Java应用程序(在EBS Tomcat上运行)上,我使用此系统属性来标识要写入的临时目录:
// Get a temporary folder to write the attachment file in
final String dirPath = System.getProperty("java.io.tmpdir");
If I remember correctly this just gives me the path /tmp
如果我没记错的话,这只是给我路径
/tmp
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.