Error while uploading files with a size that exceeds ~ 5Mb

95 views
Skip to first unread message

Nicolas Micoud

unread,
Nov 13, 2024, 4:56:55 AM11/13/24
to iDempiere
Hi,

I noticed that when trying to upload quite large files (size > 5Mb) using drag&drop, an error is thrown:

Error1.png


And user must use the "old" Load button to upload the file. And it works.

But I can't find where this limit is set.


Is reproducible on test.idempiere.org where I increase the value of SysConfig ZK_MAX_UPLOAD_SIZE to 10240.

If the size of the file exceeds 10240, a popup is shown to inform user:
Error2.png

So I guess another SysConfig is needed here to inform the maximum size of a file that can be imported by drag&drop

wdyt?

Regards,

Nicolas

Jesús Castillo

unread,
Nov 13, 2024, 5:53:25 AM11/13/24
to idem...@googlegroups.com

Hi,

That is the server application configuration. Nginx has a default one.


--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/idempiere/19eb5078-06bb-4aec-86c3-c802242d53cen%40googlegroups.com.

Carlos Antonio Ruiz Gomez

unread,
Nov 13, 2024, 6:16:48 AM11/13/24
to idem...@googlegroups.com
> So I guess another SysConfig is needed here to inform the maximum
size of a file that can be imported by drag&drop

Hi Nicolas, not a new SysConfig, the drag&drop must respect the same
limit as the upload button -> ZK_MAX_UPLOAD_SIZE.

Regards,

Carlos Ruiz




On 11/13/24 10:56, Nicolas Micoud wrote:
> Hi,
>
> I noticed that when trying to upload quite large files (size > 5Mb)
> using drag&drop, an error is thrown:
>
>
>
>
> And user must use the "old" Load button to upload the file. And it works.
>
> But I can't find where this limit is set.
>
>
> Is reproducible on test.idempiere.org where I increase the value of
> SysConfig ZK_MAX_UPLOAD_SIZE to 10240.
>
> If the size of the file exceeds 10240, a popup is shown to inform user:
>
>

Nicolas Micoud

unread,
Nov 13, 2024, 6:33:18 AM11/13/24
to iDempiere
Hi,

OK to keep a single SysConfig, that make sense.
But I can"'t find where the change should be done.
I find nothing useful in org.adempiere.ui.zk\WEB-INF\src\web\js\dragdrop\attachment\drag-drop-attachment.js
Moreover, from what I see, the ZK_MAX_UPLOAD_SIZE is passed as a parameter.

So as Jesus suggest, a change must be done in the server application configuration itself?

zuhri utama

unread,
Nov 13, 2024, 7:19:25 PM11/13/24
to iDempiere
Hi,

is the feature drag n drop working on test.idempiere.org? i tested but error as reported on jira.

Hiep Lq

unread,
Nov 13, 2024, 8:27:45 PM11/13/24
to iDempiere
drag and drop total error on all case

that because on zk10 upload handle is change (you can't find out AuUploader anymore it replace by AuMultipartUploader)

i will try to resolve it

Nicolas Micoud

unread,
Nov 20, 2024, 12:46:27 PM11/20/24
to iDempiere
Hi Hiep,

Were you able to have a look at the issue?

Regards,

Nicolas

Carlos Antonio Ruiz Gomez

unread,
Nov 22, 2024, 7:25:34 AM11/22/24
to idem...@googlegroups.com
By the way, the drop attachment is completely broken in release-12:

Reply all
Reply to author
Forward
0 new messages