[wordpress插件] AJAX File UploadAJAX文件上传

wordpress 插件 文章 2020-02-13 16:00 531 0 全屏看文

AI助手支持GPT4.0

评分

96

96

描述

This plugin will help you add file upload feature to your site, set maximum upload size, allowed file extensions, and much more through a simple shortcode or a custom function.

此插件将帮助您通过简单的简码或自定义功能将文件上传功能添加到您的网站,设置最大上传大小,允许的文件扩展名等等。

Totally AJAX, your uploads will be processed faster and an elegant way.

完全使用AJAX,可以更快,更优雅地处理您的上传。

All you need to do is to add the shortcode to your content, or call the plugin’s custom function whithin your code and that’s it.

您所要做的就是在您的内容中添加简码,或者在代码中调用插件的自定义函数。

You can either use [ajax-file-upload /*settings as attributes*/] shortcode to display the quick media upload buttons in the front-end, or use do_shortcode('

您可以使用 [ajax-file-upload / * settings作为属性* /] 简码在前端显示快速媒体上传按钮,也可以使用 do_shortcode('

[ajax-file-upload ..]') in your PHP templates, or the built-in function ajax_file_upload( $args ) for which you should set the settings as an array in the

[ajax-file-upload ..]'),或者内置函数 ajax_file_upload($ args),您应该在其中将设置设置为数组

1 function parameter (those act like shortcode attributes, in case of confusion).

1个功能参数(在混淆时,它们的作用类似于简码属性)。

Some featues:

某些功能:

    • Upload any type of media as long as your settings allow, nice and easy

      只要您的设置允许,即可上传任何类型的媒体,美观又轻松

    • Set file extensions to let limit the uploads to only custom extensions, like for instance images (jpg,png,gif,bmp..)

      设置文件扩展名以将上传内容限制为仅自定义扩展名,例如图像(jpg,png,gif,bmp ..)

    • Set maximum upload size and when a user tries to upload a larger file, they will get a notice (which you can totally customize)

      设置最大上传大小,当用户尝试上传更大的文件时,他们会收到一条通知(您可以完全自定义)

    • Custom permission to upload, you can choose to allow uploads to certain user role, or logged-in users only, or everyone!

      自定义上传权限,您可以选择允许上传到特定用户角色,或仅登录用户或所有人!

    • Fully extensible, and creates custom JavaScript events which you can hook into to get the upload data settings, response, file, and much more (view docs)

      完全可扩展,并创建自定义JavaScript事件,您可以将其挂钩以获取上载数据设置,响应,文件等(查看文档)

    You can always switch between settings from a shortcode to another, you are not obliged to use the same settings, but when a shortcode's settings are empty or the unique identifier attribute is not set then in this case, the default settings (you

    您总是可以在一个短代码设置之间进行切换,您不必使用相同的设置,但是当一个短代码的设置为空或未设置唯一标识符属性时,在这种情况下,将使用默认设置(您可以

    can change them in the admin) will be used.

    可以在管理员中更改它们)。

    Also, supports child theme.

    还支持子主题。

    You can copy the entire plugin folder to your child theme and there modify the JavaScript, CSS, and even the shortcode template and other files.

    您可以将整个插件文件夹复制到您的子主题,然后在其中修改JavaScript,CSS甚至简码模板和其他文件。

    Basically any file except the main loader file.

    基本上除了主加载程序文件之外的任何文件。

    This is totally free and open source plugin.

    这是完全免费的开源插件。

    You can contribute to it, fork it on Github, include it in your project and much more and always feel free to do so.

    您可以为它做贡献,将其添加到Github上,将其包含在您的项目中,甚至更多,并且随时可以这样做。

    Licensed under GNU GPL, just like major WordPress plugins and WordPress itself.

    就像主要的WordPress插件和WordPress本身一样,已获得GNU GPL的许可。

    If you liked it, please leave us a useful review here on WordPress, share around the social media and star the Github repository.

    如果您喜欢它,请在WordPress上给我们留下有用的评论,在社交媒体上分享并给Github存储库加注星标。

    Thank you in advance!

    预先谢谢你!

    More useful documentation can be found on Github https://github.com/elhardoum/AJAX-File-Upload and you can contact me anytime from this contact form: http://samelh.com/contact/

    联系人” rel =“ nofollow”> http://samelh.com/contact/

安装步骤

From your WordPress dashboard

从您的WordPress仪表板中

    1. Visit ‘Plugins > Add New’
    2. 访问“插件>添加新内容”

    3. Search for ‘AJAX File Upload’, select this plugin and install and active.
    4. 搜索“ AJAX文件上传”,选择该插件并安装并激活。

    5. Assuming you’re done, you should be redirected to the ‘about’ page initially on first install.
    6. 假设您已完成操作,则应在首次安装时将您最初重定向到“关于”页面。

下载地址

https://downloads.wordpress.org/plugin/ajax-file-upload.0.1.1.1.zip

https://downloads.wordpress.org/plugin/ajax-file-upload.0.1.1.1.zip

-EOF-

AI助手支持GPT4.0