-------
Code
------
remotepath = "/incoming"
f = FTP(host)
f.login(usernam e,password)
f.cwd(remotepat h)
localfile ="C:\\test.t xt"
fd = open(localfile, 'rb')
path,filename = os.path.split(l ocalfile)
f.storbinary('S TOR %s' % filename,fd)
fd.close()
f.quit()
--------
Error
--------
Traceback (most recent call last):
File "P:\Working\Pyt hon code\temp.py", line 21, in ?
uploadFile("C:\ \test.txt")
File "P:\Working\Pyt hon code\temp.py", line 16, in uploadFile
f.storbinary('S TOR %s' % filename,fd)
File "C:\Python23\li b\ftplib.py", line 415, in storbinary
conn = self.transfercm d(cmd)
File "C:\Python23\li b\ftplib.py", line 345, in transfercmd
return self.ntransferc md(cmd, rest)[0]
File "C:\Python23\li b\ftplib.py", line 327, in ntransfercmd
resp = self.sendcmd(cm d)
File "C:\Python23\li b\ftplib.py", line 241, in sendcmd
return self.getresp()
File "C:\Python23\li b\ftplib.py", line 214, in getresp
raise error_perm, resp
ftplib.error_pe rm: 553 test.txt: No such file or directory.
Disclaimer
This e-mail and any attachments is confidential and intended solely for theuse of the individual(s) to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Waterstone Capital Management, L.P and affiliates. If you are not theintended recipient, be advised that you have received this e-mail in errorand that any use, dissemination, printing, forwarding or copying of this email is strictly prohibited. Please contact the sender if you have receivedthis e-mail in error. You should also be aware that e-mails are susceptible to interference and you should not assume that the contents of this e-mail originated from the sender above or that they have been accurately reproduced in their original form. Waterstone Capital Management, L.P. and affiliates accepts no responsibility for information, or errors or omissions in this e-mail or use or misuse thereof. If in doubt, please verify the authenticity with the sender. 0 1436 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Marc |
last post by:
Hello,
I have a page where i can upload binary file (using the HTML input
type=file approach). This works fine for relatively small files
(<6MB)) but when files get bigger (13MB) there is a problem.
The code of the php file is based upon the article in
http://www.onlamp.com/pub/a/php/2000/09/15/php_mysql.html: uploading
large binary files using more than one table and more trhan 1 row per
file.
|
by: Amy Kimber |
last post by:
Hello,
I have a file upload page, and I've had it working fine, it was
beautiful :-) Anyway, the powers that be moved hosts... and it doesn't
work now.
The file name is correct, the directory where it's going on the
server is correct (checked through prints etc.). I've changed the dir
to 777 (is that right?) and this is what I get on the
print_r($_FILES); line:
|
by: Tony |
last post by:
Access collective,
I am running WinNT4.0, Acc2000 SR1 and IE 6.0.
I converted (from Acc97) and imported Dev Ashish's InetTransferLib add-in
modules into my Acc2000 database. Using the sample FTP upload code provided
by Dev, I can connect to my FTP server but it will not upload the specified
file. However, it can create a non-existent directory if I set
..AutoCreateRemoteDir = True.
Dev's sample code with my modifications:
|
by: brian.digipimp |
last post by:
So I wrote this upload script and I keep getting errors and can't get
it to work. I'm running ubuntu linux and here is my code:
<html>
<head>
<title>Upload</title>
</head>
<body>
<?php
|
by: ruju00 |
last post by:
I am getting an error in Login() method of the following class
FtpConnection
public class FtpConnection
{
public class FtpException : Exception
{
public FtpException(string message) : base(message){}
public FtpException(string message, Exception innerException) :
base(message,innerException){}
| |
by: igotyourdotnet |
last post by:
Ok, here is the issue: I have 2 web pages one does a file upload to a
database and the other page does a FTP to a server, both pages use the
c:\temp directory.
The page that uploads to a database works fine, the page that FTP's the
files returns me an error (Access denied filename.txt)
Now the asp.net ID has full control of the c:\temp directory. The only
difference in the 2 pages is that page 2 creates a text file writes data to
it then...
|
by: UJ |
last post by:
I am trying to write a routine to upload a file through a web service to our
server. I've enclosed the following code and when I run it I get an error:
Exception Occurred. Error: Logon failure: unknown user name or bad
password.\n Trying to write to file I:\\ECS\\Content\\UploadFile.txt Last
Action = File Open
Does this mean that the ASP.Net account (which I haven't changed) doesn't
have rights to the directory or that there is...
|
by: Buddy Home |
last post by:
Hello,
I'm trying to upload a file programatically and occasionally I get the
following error message.
Unable to write data to the transport connection: An established connection
was aborted by the software in your host machine.
Stack Trace
at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32
|
by: chrisj |
last post by:
I'm using freeASPupload and got some assistance integrating to a Member script. It works successfully.
In this modified version there are two groups that use this upload script. Members of one group get automatically re-directed after uploading.
However, this member group never gets the benefit of knowing if they've uploaded an incorrect file size or incorrect file extension.
Members from the second group do see the "exceeds max file...
|
by: happyse27 |
last post by:
Hi All,
I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration of section c.
Not sure where went wrong as the web page displayed internal server error.
Also, what is the error 543? and error 2114. Where to find the list of errors in websites as it is not the standard apache error. I could not find...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |