rejetto forum

Software => HFS ~ HTTP File Server => HTML & templates => Topic started by: fahad15090 on October 23, 2020, 10:49:12 AM

Title: Drag-&-drop file upload need help
Post by: fahad15090 on October 23, 2020, 10:49:12 AM
I'm trying to add Drag-&-drop support on "Fuh2.0"
http://rejetto.com/forum/index.php?topic=13375.0 (http://rejetto.com/forum/index.php?topic=13375.0)  template using https://uppy.io/examples/dragdrop/ (https://uppy.io/examples/dragdrop/)
But i have error,
If any developer help me to upload files from custom
Drag-&-drop button to HFS using given below HTML FILE
Leave the comment
Title: Re: Drag-&-drop file upload need help
Post by: dj on October 23, 2020, 01:20:56 PM
you can try LinkserverV2.1 (http://rejetto.com/forum/index.php?topic=13366.msg1066503#msg1066503) (should also work with files)

mobil-light (http://rejetto.com/forum/index.php?topic=11754.msg1061351#msg1061351) has DnD (https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) by default (https://github.com/dj0001/hfs-template/blob/gh-pages/mobil-light_V5.5.tpl#L86)

with this library:
add the html-file to your server (because CORS)
replace Uppy.Tus with Uppy.XHRUpload
replace the endpoint with the folder (e.g. 'http://127.0.0.1/server/'

P.S.: protect your local (and movies) folder
Title: Re: Drag-&-drop file upload need help
Post by: fahad15090 on October 24, 2020, 07:50:53 AM
thanks if anyone have another suggetion
leave  comment
Title: Re: Drag-&-drop file upload need help
Post by: fahad15090 on October 24, 2020, 12:25:51 PM
Example ( let i make website with {only} image upload feature for visitor to upload and view his images on website.
but in server side i want to add (upload) button that work with hfs to transfer user file to my hfs folder
but problem is that i'm not able to do that PLEASE HELP ME ,i really thankfull to U.
Title: Re: Drag-&-drop file upload need help
Post by: NaitLee on October 24, 2020, 01:33:05 PM
Example ( let i make website with {only} image upload feature for visitor to upload and view his images on website.

In Virtual File System: select a folder you desire to use >> rightclick, properties >> file masks >> upload filter mask, fill with:
Code: [Select]
*.jpg;*.jpeg;*.png;*.gifOr other format you want. Then users can only upload images (or other types if you specify)
Title: Re: Drag-&-drop file upload need help
Post by: fahad15090 on October 24, 2020, 03:16:08 PM
you can try LinkserverV2.1 (http://rejetto.com/forum/index.php?topic=13366.msg1066503#msg1066503) (should also work with files)

mobil-light (http://rejetto.com/forum/index.php?topic=11754.msg1061351#msg1061351) has DnD (https://developer.mozilla.org/en-US/docs/Web/API/HTML_Drag_and_Drop_API) by default (https://github.com/dj0001/hfs-template/blob/gh-pages/mobil-light_V5.5.tpl#L86)

with this library:
add the html-file to your server (because CORS)
replace Uppy.Tus with Uppy.XHRUpload
replace the endpoint with the folder (e.g. 'http://127.0.0.1/server/'

P.S.: protect your local (and movies) folder

i do this below file(uppy-upload1.html) but instead of file upload page reload to hfs link page that linked to be upload