aboutsummaryrefslogtreecommitdiff
path: root/src/mod_http_upload.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use lists:foldl/3Evgeniy Khramtsov2018-06-271-7/+6
|
* Generate HTTP Upload form using xdata codecEvgeniy Khramtsov2018-06-271-9/+3
|
* Improve error formatting in mod_http_uploadEvgeniy Khramtsov2018-06-261-9/+22
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Return detailed error if HTTP upload is too largeHolger Weiss2018-06-041-8/+16
| | | | | If the file size specified in an HTTP upload slot request exceeds the the configured maximum size, include the limit with the stanza error.
* Fix typo file:read() -> file:open()Evgeniy Khramtsov2018-05-171-1/+1
|
* Optimize HTTP requests memory usageEvgeniy Khramtsov2018-05-141-42/+56
| | | | | | | | | | | | | | | Due to historical reasons, ejabberd loads the whole file/data into the memory when serving an HTTP request. This is now improved: 1) For GET requests ejabberd uses sendfile(2) if the underlying connection is HTTP and falls back to read/write loop with 64kb buffer for HTTPS connections. This type of requests are handled by mod_http_fileserver, mod_http_upload, ejabberd_captcha, etc 2) POST requests are now limited to 20Mb and are fully downloaded into the memory for further processing (by ejabberd_web_admin, mod_bosh, etc) 3) PUT requests (e.g. for mod_http_upload) are handled by read/write loop with 64kb buffer
* Disable thumbnails creation by defaultEvgeniy Khramtsov2018-05-111-1/+1
|
* mod_http_upload: Add MIME type for M4A filesHolger Weiss2018-04-241-0/+1
|
* mod_http_upload*: Remove empty lines after specsHolger Weiss2018-04-161-45/+0
| | | | | Remove blank lines following function specifications in mod_http_upload and mod_http_upload_quota for consistency with other modules.
* mod_http_upload*: Add function specificationsHolger Weiss2018-04-161-0/+2
|
* mod_http_upload: Accept characters of any scriptHolger Weiss2018-04-031-4/+14
| | | | | | | | Accept all alphanumeric characters of any script in user and file names rather than replacing non-ASCII characters with underscores. However, non-alphanumeric characters are still replaced, except for "." and "-". Closes #2346.
* Move ejabberd_http:url_encode/1 to 'misc' moduleHolger Weiss2018-04-031-1/+1
|
* Move make_rand_string() to 'randoms' moduleMarc Schink2018-02-231-22/+1
|
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-29/+51
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Get rid of a call to misc:have_eimp()Evgeniy Khramtsov2018-01-151-14/+9
|
* Always build eimp dependencyEvgeniy Khramtsov2018-01-151-15/+13
| | | | | | Even if no suitable C graphics libraries are detected at compile time, the package is still usable because it provides `eimp:get_type/1` which is used by mod_avatar.
* Process 'name' option for all route-registering modulesEvgeniy Khramtsov2018-01-081-1/+2
| | | | | | | | | | | | | | | | | | | | | The option allows to set arbitrary text for disco#info identity name. Previously, option 'name' was supported by mod_proxy65 and mod_http_upload only. Now, all the following modules support this option as well: - mod_disco - mod_irc - mod_muc - mod_multicast - mod_pubsub - mod_vcard Example: ``` modules: ... mod_disco: name: "Cool XMPP Server" ... ```
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Remove forgotten export_allEvgeniy Khramtsov2017-09-271-1/+1
|
* mod_http_upload: Don't ignore 'custom_headers'Holger Weiss2017-09-261-38/+55
| | | | | | | Don't ignore the 'custom_headers' option if the domain part of the 'put_url' doesn't match the XMPP domain. Closes #1482.
* Use eimp instead of ImageMagick calls for thumbnails creationEvgeniy Khramtsov2017-09-251-51/+62
|
* Reuse some translation stringsEvgeniy Khramtsov2017-09-241-1/+1
|
* Get rid of deprecated crypto functionsEvgeniy Khramtsov2017-08-171-1/+1
|
* Introduce 'hosts' optionEvgeniy Khramtsov2017-08-081-8/+12
| | | | | | | | | | | | | | | The option can be used as a replacement of 'host' option when several (sub)domains are needed to be registered for the module. Note that you cannot combine both 'host' and 'hosts' in the config because 'host' option is of a higher priority. Example: mod_pubsub: ... hosts: - "pubsub1.@HOST@" - "pubsub2.@HOST@" Fixes #1883
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-73/+17
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Add support for HTTP File Upload, version 0.3.0Holger Weiss2017-04-211-20/+45
| | | | | Support the current XEP-0363 version in addition to the previous revisions.
* Don't try to load already loaded applicationsEvgeniy Khramtsov2017-04-191-12/+0
|
* Rename aux.erl as misc.erl17.04Christophe Romain2017-04-111-3/+3
| | | | Thanks Microsoft Windows to not support some filenames
* Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov2017-03-301-3/+3
| | | | | Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
* mod_http_upload: Don't add "Server" header lineHolger Weiss2017-03-281-4/+2
| | | | | Administrators can add the "Server" header line using the new listener option "custom_headers", if desired.
* ejabberd_http: Expand @VERSION@ in custom headersHolger Weiss2017-03-271-6/+4
| | | | | | | Let ejabberd_http expand the @VERSION@ keyword to the ejabberd version if specified in the "custom_headers" listener option. Closes #1414.
* Get rid of p1_sha callsAlexey Shchepin2017-03-141-1/+1
|
* Don't fail on elements decodingEvgeniy Khramtsov2017-02-261-19/+30
|
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-11/+11
|
* Don't pass empty resource to jid:make()Evgeniy Khramtsov2017-02-251-1/+1
|
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-181-4/+4
|
* Change routing APIEvgeniy Khramtsov2017-02-161-13/+12
| | | | | | | | | | | Now 'From' and 'To' arguments must be omitted in functions and structures related to routing. The commit deprecates the following functions: ejabberd_router:route/3 in favor of ejabberd_router:route/1 ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2 ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2 ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3 The format of {route, From, To, Packet} is changed in favor of {route, Packet}
* Only use GEN_SERVER macro where appropriateEvgeniy Khramtsov2017-02-141-4/+1
|
* Attach modules to gen_mod's supervisorEvgeniy Khramtsov2017-02-141-23/+9
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-4/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cyrsasl.erl src/ejabberd_c2s.erl src/ejabberd_cluster.erl src/ejabberd_frontend_socket.erl src/ejabberd_node_groups.erl src/ejabberd_router.erl src/mod_bosh.erl src/mod_ip_blacklist.erl src/mod_muc_mnesia.erl src/mod_offline.erl src/mod_proxy65_sm.erl
| * Implement database backend interface for MUC, BOSH and auth_anonyousEvgeniy Khramtsov2017-01-131-4/+0
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Improve translation of some messagesEvgeniy Khramtsov2016-11-261-2/+1
|
* Fix handling mod_http_upload disco#info queries: need decoded elementsBadlop2016-11-211-1/+2
| | | | | As reported in https://www.ejabberd.im/forum/28605/ejabberd-modhttpupload-error-405-not-allowed
* Deprecate jlib:integer_to_binary/1 and jlib:binary_to_integer/1Evgeniy Khramtsov2016-09-241-4/+4
|
* Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-1/+1
|
* Improve some type specsEvgeniy Khramtsov2016-08-091-3/+6
|
* Rewrite mod_http_upload to use XML generatorEvgeniy Khramtsov2016-07-301-133/+64
|
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-0/+6
|