Announcement

Collapse
No announcement yet.

Multiupload field

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiupload field

    Hello everyone.
    - Scriptcase 8.00.0012
    Use the multiupload file (document filename)
    Question:
    1) How can I limit (or check) the number of files that the user is entering?
    2) How can I list the names of files that the user has prepared (for a check on names)?
    3) I should intercept all the names BEFORE the insert into table 'table_upload' and BEFORE the upload to the remote server, in order to perform the rename (or copy from the remote folder 'tmp') each adding one or more suffixes or prefixes. what is the event?
    example:
    new field: nfilename
    multi upload:
    source 'file1.doc' rename to {fieldcode}_file1_20141003171500.doc
    source 'file2.xls' rename to {fieldcode}_file2_20141003171501.xls
    source 'pdf file' rename to {fieldcode}_file1_20141003171502.pdf
    Another multiupload:
    source 'file1.doc' rename to {fieldcode}_file1_201410040900.doc
    Thanks for the answer that you give me
    hello
    Enrico

  • #2
    There are no events unfortunately to do this. So you can only check afterwards. AFAIK multiple uploads only work on the database so to prevent files that are too big you can set max_packet_size in my.ini and maxupload in php.

    Other option is to integrate another uploader into a blank application. Then you have full control.
    Albert Drent
    aducom software netherlands
    scriptcase partner, reseller, support and (turn-key) development
    www.scriptcase.eu / www.scriptcase.nl

    Comment


    • #3
      Thank you Albert.
      My problem is that I can meet up with upload files with the same name!
      I will adopt the system with fields 'attachment' in the table and then, in beforeInsert or beforeupdate event I have full management.
      Thanks again
      hello
      Enrico

      Comment

      Working...
      X