Upload to FTP

注意

本外掛與 WordPress 5.0 之後版本存在相容性的問題,以不建議使用。

簡介

這是一個可以讓你輕鬆將附件上傳到指定的 FTP 之外掛,讓圖床的運作更佳的省時省事!

WordPress 官方網站外掛目錄中的本程式

協助本地化

如果你想要協助將本外掛的內容本地化成為你所熟知的語言,並且願意分享給大家使用的話,請前往 WordPress.org 進行內容的貢獻。

外掛歷史

請前往 Upload to FTP 版本歷史 觀看。

程式授權條款

MIT

作者:Richer

最後編輯日期:

How to set the HTML link url?
When update 12.10, the HTML link never OK now, previous version works great.
BTW, my previous HTML link is https.

Hi elfive.
I updated the plugin to 1.0.4.
If get test file error OR file ccontent not “abc—xyz”, won’t do the delete test.
So in you case, the test file will keep On FTP let you know is real get error OR setting error.

hi
I using ur plugin, its very good. But i want to use it beside easy digital download, and store my product file in another ftp site, when use ur plugin at download time, edd shows a temporary download link, but when browser goes for download the link convert to original link at ftp server and everything that edd has hidden, will shows to everyone.
Is it a way for ur plugin to work like uploading, when user wants to download a file ? it means maybe the wordpress server get the original file from ftp server and the pass it to the end user (like when it is at upload, which get the original file from user and pass it to the ftp server).

thanks alot.

Some themes will produce small pictures
Srcset The linked image is the old URL
How to set up?
thanks

您好,想請問這個可以使用sftp協定登入嗎?
我使用了中國大陸網友和您的plugin測試過,目前似乎因為無法用sftp登入的關係,所以即使我所輸入的登入資訊是正確的,但也無法登入
(我用的是linode的VPS,裡面裝了Ubuntu

您好,我知道了。
那想在請問作者,會考慮新增sftp上傳的選項嗎?
謝謝您的閱讀

想請教一下 在未作參數修改情況
只是將網站搬至其他主機同為 cPanel
原本檔案刪除狀態為 “可以刪除”
但是換台主機後便顯示 “不可以刪除”

圖片連結:https://i.imgur.com/7QYQ9Qy.jpg

導致網站佈景是吃媒體庫的檔案
無法直接從後台刪除,這問題有解?
已確定 FTP 屬性為預設且可正常連線
這部分請專業 Richer 協助解答了 謝謝

hi
The plugin works correctly But 300×300 Crop File Size is 0kb and dont show in post thumbnail.
please check this problem.
thanks.

thank you
when disable “Delete Auto build local file” option , Works fine.
but original file and all cropped files stayed in host.
I do not want the files to stay in the hosts.
thanks.

Hello, I recently learned of this plugin, and it is very useful, thanks, but in the case of the host I use, it has a certain folder “/ htdocs” as if it were “public”, but in reality this directory does not appears as if it were in the ftp “/ htdocs /” but only “mysite.com” appears, using the plugin in the directory part, it is necessary to put the “htdocs” dir in the view of that loaded image, this dir also appears thus “mysite.com/htdocs/img.jpg” that results by not finding, however this image was uploaded and is in “mysite.com/img.jpg”, could help me how to prevent this “ftp dir” from appearing in image upload link loaded? I looked at the code but I’m not very programming …

sorry, I already managed to adjust this by removing the dir option from load file, but now I have other issues like: Upload images to different folders, I use a website to post sleeves, I’m from a fansub, and I’m using Upload to FTP to use as a second option to see the images that will be allocated on a server managed by us, but the images are from names like “01.jpg, 02.jpg” and is being uploaded to just a folder so giving some image viewing bugs, I would like that when uploading images inside a post, that the place where it will be loaded will be equal to the category category of the post along with another information that is signed as a custom field ex: “mysiteftp .com / CategoryOfPost / ValueOfCustomFieldOfPost / namefile.jpg “, could you help me please? PS: An idea of ​​mine that could be good for the plugin, put option of several ftps, some use servers that have inodes and limit upload, so if it had an option where it could register several FTP’s and that could determine in the setting Upload to FTP in which wants to upload at that time, and if it has been ugly uploading to other ftp, the old ftp links will be kept. PPS: Another thing would be that from what I noticed when uploading to FTP, it also uploads to the local server, but by deactivating the plugin the one that was loaded will appear blank even though having the copies on the local server, so it becomes useless to upload a copy to the local server and it will not be visible in the gallery

PPPS: I know it can be difficult, but I would not have how to apply upload to Imgur via API? has a free plugin that does this “imgur-upload” which is a generic of a paid one, but the problem is that it can only select one image at a time, so if you had how to make the gallery be connected via API … the api imgur allows you to upload, load, rename, delete, and grab the images as direct link, etc. .. then it would just change the information so it suits for the API’s, I do not do it because I’m really not good with programming

1. the dir of link quertion.
If you need link the file as “mysite.com/img.jpg”, set the “HTML link url” as “http://mysite.com/”.
then set the “FTP Directory” to the dir which the web server using to show the “http://mysite.com/”.

2. If you need to upload file in a custom folder base on post_type or category. You need to find other plugin to do this. “upload custom folder” can help you find some plugin, hope you can find ont to help you.

3. Support multiple FTP. Sorry, won’t happen in this plugin.

4. when you upload image, WordPress need to make some different size of image. It only work at local server. after that the plugin upload file to remote server by FTP. If you don’t need to keep local file, you can set the option “Delete Auto build local file” enable, to delete local file after upload to remote server.

5. use “WordPress Imgur” in google, you can find a lot of plugin to work within Imgur.
because I don’t use Imgur, so can’t tell you which one can help you.

不知道为什么,在服务器上用sftp命令连接sftp服务器是没有问题的,上传文件都没问题,但是用插件就是会提示这个
Connect and Login: Test Complete

Upload file: Testing
Open directory /home/wwwroot/ failure.
请问作者这个是什么问题呢?

在一个老网站上测试,用如下sql修改老图片路径后,插件不能上传到ftp服务器中。
UPDATE YourDBName_posts SET post_content = REPLACE( post_content, ‘YourOldUrl’, ‘YourNewUrl’ )

换了很多台服务器,还是不行,给目录了777权限,换了好几个用户,都没用,只用了SFTP,
Open directory /home/wwwroot/ failure.

對於一些需要金鑰才能登入的主機,是否可能增開用金鑰匙登入這個項目呢?例如gcp或是aws的執行個體就是如此。

Hi, I want to display a form for users to upload to the ftp host. where is the snippet code, also what is the html link? thanks.

您好,我在使用插件时,Upload file 一直显示为testing,无法进入下一步。我是用PHP 7.3.6和wordpress 5.2.1。能否帮忙看一下,多谢!
Connect and Login: Test Complete
Upload file: Testing
HTML link:
Delete file:
Create directory:

Igor 的留言發表回覆 取消回覆

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為

這個網站採用 Akismet 服務減少垃圾留言。進一步了解 Akismet 如何處理網站訪客的留言資料