在服务器上保存文件.. [英] Save file on server..

查看:98
本文介绍了在服务器上保存文件..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!


我想知道我是否可以使用服务器端代码保存服务器上的文件?


例如,我喜欢创建缩略图并填充特定的

目录。


我是否需要特定权限才能执行此操作? (我使用公共主机)


谢谢!

Hi!

I would like to know if I can save File on Server using server-side code?

For example, I like to create thumbnail images and populate specific
directory.

Do I need specific permissions to do this? (I use public host)

Thanks!

推荐答案

是的,你的代码需要写权限您希望保存到服务器上的文件夹



通常您会将此权限授予ASPNET用户帐户。

In你的情况下你可能需要你的网站主机为你设置必要的

权限。


-

我希望这会有所帮助,

Steve C. Orr,MCSD,MVP
http://Steve.Orr.net

聘请顶级开发人员 http://www.able-consulting.com


" Ivan Demkovitch" < i@a.b>在消息中写道

新闻:OE ************** @ TK2MSFTNGP10.phx.gbl ...
Yes your code will need write permissions to the folder on the server that
you wish to save to.
Normally you''d grant such permission to the ASPNET user account.
In your case you''ll probably need your web host to set up the necessary
permissions for you.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Ivan Demkovitch" <i@a.b> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
嗨!

我想知道我是否可以使用服务器端代码保存服务器上的文件?

例如,我喜欢创建缩略图并填充特定的目录。

我是否需要特定权限才能执行此操作? (我使用公共主持人)

谢谢!
Hi!

I would like to know if I can save File on Server using server-side code?

For example, I like to create thumbnail images and populate specific
directory.

Do I need specific permissions to do this? (I use public host)

Thanks!



好的。


谢谢,会试试这个...

Steve C. Orr [MVP,MCSD]" <圣*** @ Orr.net>在消息中写道

news:eF ************** @ TK2MSFTNGP09.phx.gbl ...
Ok.

Thanks, will try this ...
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eF**************@TK2MSFTNGP09.phx.gbl...
是的,你的代码需要将权限写入您希望保存到的服务器上的文件夹。
通常您会将此权限授予ASPNET用户帐户。
在您的情况下,您可能需要你的网络主机为你设置必要的权限。

-
我希望这会有所帮助,
Steve C. Orr,MCSD,MVP http://Steve.Orr.net
聘请顶尖开发人员 http://www.able-consulting.com
Ivan Demkovitch < i@a.b>在消息中写道
新闻:OE ************** @ TK2MSFTNGP10.phx.gbl ...
Yes your code will need write permissions to the folder on the server that
you wish to save to.
Normally you''d grant such permission to the ASPNET user account.
In your case you''ll probably need your web host to set up the necessary
permissions for you.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Ivan Demkovitch" <i@a.b> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
嗨!
我想知道我是否可以使用服务器端
代码保存服务器上的文件?
例如,我喜欢创建缩略图并填充特定的
目录。

我是否需要特定权限才能执行此操作? (我使用公共主持人)

谢谢!
Hi!

I would like to know if I can save File on Server using server-side code?
For example, I like to create thumbnail images and populate specific
directory.

Do I need specific permissions to do this? (I use public host)

Thanks!




Steve,


我做到了,它在我的系统上工作得很好,并且不在主机上工作......


你知道吗他们需要在他们的服务器上设置允许文件

操作吗?


非常感谢,

Ivan


" Steve C. Orr [MVP,MCSD]" <圣*** @ Orr.net>在消息中写道

news:eF ************** @ TK2MSFTNGP09.phx.gbl ...
Steve,

I did it and it works perfect on my system and doesn''t work on a host...

Do you know EXACTLY what they need to set on their server to allow file
operations?

Thanks a lot,
Ivan

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eF**************@TK2MSFTNGP09.phx.gbl...
是的,你的代码需要将权限写入您希望保存到的服务器上的文件夹。
通常您会将此权限授予ASPNET用户帐户。
在您的情况下,您可能需要你的网络主机为你设置必要的权限。

-
我希望这会有所帮助,
Steve C. Orr,MCSD,MVP http://Steve.Orr.net
聘请顶尖开发人员 http://www.able-consulting.com
Ivan Demkovitch < i@a.b>在消息中写道
新闻:OE ************** @ TK2MSFTNGP10.phx.gbl ...
Yes your code will need write permissions to the folder on the server that
you wish to save to.
Normally you''d grant such permission to the ASPNET user account.
In your case you''ll probably need your web host to set up the necessary
permissions for you.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Ivan Demkovitch" <i@a.b> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
嗨!
我想知道我是否可以使用服务器端
代码保存服务器上的文件?
例如,我喜欢创建缩略图并填充特定的
目录。

我是否需要特定权限才能执行此操作? (我使用公共主持人)

谢谢!
Hi!

I would like to know if I can save File on Server using server-side code?
For example, I like to create thumbnail images and populate specific
directory.

Do I need specific permissions to do this? (I use public host)

Thanks!




这篇关于在服务器上保存文件..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆