Error: Requested action not taken. file name not allowed - ftp

I am using UltraEdit for FTP. While saving my files to other server using FTP I am getting above error as ;'Error: Requested action not taken. file name not allowed'.
Could anyone know the possible cause and solution for it.
Thanks in advance

Well, the FTP server returns error code 40553 - Requested action not taken. File name not allowed.
The reason is most likely a bad character in file name, or a too long file name, or there is a file already on the server with same name and you do not have the permissions to overwrite this file.
You could also have made a mistake in the FTP account configuration like a typing mistake in initial directory.
Do you have downloaded the file from the FTP server before you tried uploading it?
Please note that Unix file systems most often used on FTP servers are case-sensitive and therefore a file with name "MyFile.txt" is a different file than "myfile.txt".
Finally, very often a firewall blocks data transfer in a separate data channel established from FTP server to FTP client module in UltraEdit. In this case the option Passive transfers (for firewalls) should be enabled on the Server tab of this FTP account in the FTP Account Manager window.

Related

CopyStreamException in JMeter FTP request

I have a server to which I am sending my files through FTP request Jmeter protocol.
I get this error in the results page and I don't know where the error resource is.
org.apache.commons.net.io.CopyStreamException: IOException caught while copying.
Edit: is the snapshot of my test screen
Double check whether local file exists and the path is correct
Double check that remote path exists and your user has write permissions to that location
Double check you are using put (STOR) method and appropriate Use Binary Mode? checkbox state
If you are still experience problems follow the next troubleshooting steps:
Try to upload the same file using "normal" FTP client like FileZilla or WinSCP
Update your question with the screenshot, demonstrating FTP Request sampler configuration and eventually FTP Request Defaults and the full log file
Raise an issue to JMeter issue tracker (be ready to have answers mentioned in points 1 and 2)
Check out Load Testing FTP and SFTP Servers Using JMeter to learn more on the domain, examples and alternative options.

Camel FTP Fails to retrieve files based on the include filter

I am using Apache camel 2.13.2 and am trying to connect to an FTP to retrieve files based on the file expression given in the include parameter. I can see that there are files in the folder in the ftp account, but camel doesn't pull the files. I can see in the log that the connection is successful, but the exchange is returned as null. The same code works for other ftp accounts. Could someone help to understand on where I am doing wrong, and things that I could try to get this fixed?
ftp://XXXXXXX#XXXXXXX.XXXXXXX.XXX:21/testfolder/testfold/test?password=RAW(XXXXXXX)&binary=true&pollStrategy=#xxxFTPPollingConsumerPollStrategy&throwExceptionOnConnectFailed=true&sendEmptyMessageWhenIdle=true&delay=15000&maxMessagesPerPoll=30&stepwise=false&consumer.bridgeErrorHandler=true&idempotent=true&idempotentKey=${file:name}-${file:size}-${file:modified}&readLock=changed&include=.*
first try without any filters to see if it is the problem.
In any case, depending on the server and client firewalls and linux vs windows encoding (for the file transfer) you should give a try to the following URI parameters:
binary=true
passiveMode=true
most of the times with the default passiveMode camel wont list any file and file transfer may fail with an ArrayOutOfBounds error.
To double check set the logging level of camel to debug and to trace for the ftp component:
logging.level.org.apache.camel=DEBUG
logging.level.org.apache.camel.component=TRACE
without passiveMode=true you will likely notice that the list file doesn't find any file.
more info about the FTP passive mode can be found here

How to determine the mime type of a file being hosted by a remote server?

I am trying to determine the MIME type that my web host uses when a request is made for a particular file hosted on his server.
Suppose I have a url:
https://www.mysitename.com/myfile.myextension
And I am trying to determine the MIME type my web host uses for ".myextension" files, how can I do so?
I figure there must be some way I can make an HTTP request for the file, and as a result there would be some headers, one of which should specify the MIME type of the file.
How can I do this? Can I use terminal on OSX or Ubuntu or something ?
I'm looking for commands to execute from the terminal to determine the MIME type according to the remote server of my file.
EDIT: Forgot to mention - the url is HTTPS.
EDIT: I cannot log into the terminal on the remote server - I can only log into my terminal on my local machine.
There is a command called mimetype which gives mimetypes information. You can give it a try.

phpDesigner 8 FTP

so I thought I will give this software a try after years with Dreamweaver, but I got a problem browsing my files with its ftp browser.
When I log in with a different ftp client, I can see my files without any problem, but in the phpD client, I can only browse "aspnet_client".
Any idea why ?
It seems some broken FTP clients cant get the correct path to your username directory, this specific client trying to access the root directory, all you have to do is provide him your ftp path (instead of the default '/'), usually - your username.

Copying files to a remote server over FTP protocol

I use Filezilla to do my FTP duties and I'm unable to copy files without making a copy to the my local computer.
I doubt Filezilla is bad software. Is this just an inherent quality of FTP?
The FTP Protocol does not define a "copy" command.
If your FTP client has a copy command, then it has to implement this itself using what's available through FTP. This works out to something like: GET/RETR , CWD , PUT/STOR .
Some FTP servers will implement proprietary extensions and offer a command like COPY. A client may or may not choose to implement these, in which case it doesn't involve a local file copy.
According to the error messages I get within WinSCP when I try and duplicate or copy.. apparently it is.
I'm guessing there's some FTP theory on it somewhere. Even to duplicate WinSCP wanted to temp dump stuff to my local machine.
There aren't any copy commands listed at the list of FTP commands, so it's not in the FTP definition. It's just something FTP clients add themselves to be more user-friendly.

Resources