473,396 Members | 1,966 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

ASP upload best practice question / help

Folks

Please bear with me - I'm not a real ASP pro...

I need some advice about the following problem:

I have "inherited" of a working ASP site which is hosted on a
collocated IIS machine.

At some point the site offers the possibility for any user to fill a
form and upload a file that is then dispatched, with the content of the
form, to an e-mail address.

The "legacy" code uses Scripting.FileSystemObject to transfer
(write) the file from the user POST to a local directory of the IIS
server. An e-mail message is then created, the said file attached and
the message submitted.

Our hosting company has recently replaced the IIS server and they are
very reluctant to give IUSR_<machinename> (the user running the ASP
code) write access to the local directory we were using.

So my question is: what is the best practice in such cases ?

Any info / pointer most welcome

Regards
--alexT

Mar 8 '06 #1
6 1450

AlexT wrote:
Folks

Please bear with me - I'm not a real ASP pro...

I need some advice about the following problem:

I have "inherited" of a working ASP site which is hosted on a
collocated IIS machine.

At some point the site offers the possibility for any user to fill a
form and upload a file that is then dispatched, with the content of the
form, to an e-mail address.

The "legacy" code uses Scripting.FileSystemObject to transfer
(write) the file from the user POST to a local directory of the IIS
server. An e-mail message is then created, the said file attached and
the message submitted.

Our hosting company has recently replaced the IIS server and they are
very reluctant to give IUSR_<machinename> (the user running the ASP
code) write access to the local directory we were using.

So my question is: what is the best practice in such cases ?

Any info / pointer most welcome

Regards
--alexT


Best practice is that the service provider tries to offer the customer
solutions. What does your hosting company propose you do instead?

--
Mike Brind

Mar 8 '06 #2
They are reviewing the issue, for what it's worth...

--alexT

Mar 8 '06 #3

AlexT wrote:
They are reviewing the issue, for what it's worth...

--alexT


Then you should be reviewing them too, and you should be letting them
know that. After all, you pay the bills. And I'm sure for every one
hosting company that takes this kind of approach, there are hundreds
who will say "no problem", or, "here's an alternative that won't
interfere with your service".

Incidentally, when you reply to a post using Google Groups, don't use
the "Reply" link at the bottom of the post - it wipes out what you are
replying too, and people accessing the message through newsreaders that
don't thread won't have the foggiest what you are talking about.

Instead, click on Show Options at the top of the post and use the Reply
link there. I keeps the messages intact.

I know that Google Groups is in Beta, but the way they've programmed
the reply mechanism, well... you'd almost think they own Usenet!

--
Mike Brind

Mar 8 '06 #4
AlexT wrote:
Our hosting company has recently replaced the IIS server and
they are very reluctant to give IUSR_<machinename> (the user
running the ASP code) write access to the local directory we
were using.


See if they will provide write access to a dedicated subdirectory. The
uploaded file need not sit where the scripts do.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Mar 8 '06 #5

Dave Anderson wrote:
AlexT wrote:
Our hosting company has recently replaced the IIS server and
they are very reluctant to give IUSR_<machinename> (the user
running the ASP code) write access to the local directory we
were using.


See if they will provide write access to a dedicated subdirectory. The
uploaded file need not sit where the scripts do.


There are plenty of hosting providers that will allow you to control
access to your own directory, and everything below it.

Mar 8 '06 #6
There are plenty of hosting providers that will allow you to control
access to your own directory, and everything below it.


so the consensus is that there nothing inherently wrong with my
scripting and that I should lobby my hosting company ?

Regards

--alexT

Mar 9 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: dave | last post by:
Hello there, I am at my wit's end ! I have used the following script succesfully to upload an image to my web space. But what I really want to be able to do is to update an existing record in a...
1
by: Chris Mosser | last post by:
I'm looking for an applet that allows for multiple file uploads. I found jupload and am considering using that, but I might have a couple issues. I need to build a web app for a print shop, that...
4
by: miarte | last post by:
I have a form to allow the user upload images. The user browse for an image in their computer and click open, th image to be upload is preview on the img tag. The script works fine with IE, but...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
136
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
9
by: Wayne Smith | last post by:
I've come up against a major headache that I can't seem to find a solution for but I'm sure there must be a workaround and I would really be grateful of any help. I'm currently building a web...
16
by: Rex | last post by:
Hi All - I have a question that I think MIGHT be of interest to a number of us developers. I am somewhat new to VIsual Studio 2005 but not new to VB. I am looking for ideas about quick and...
1
by: lPrentice | last post by:
Hello, After all this time, Linux file permissions still confuse me at times. I have a Python web-based application with an file (images) upload module. The application is running on two remote...
2
by: hotflash | last post by:
Hi All, I found the best pure ASP code to upload a file to either server and/or MS Access Database. It works fine for me however, there is one thing that I don't like and have tried to fix but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.