Hello there!
So, I'm developing sort of a knowledge repository for my company. I wanted to give the user the possibility to upload a file along whit it's ''knowledge content'' .
First I though I could do it using only de outsystem's widget (file upload) but after some research on google i realized i had to use a ''external api/component'' from FORGE.
I've download the multiple file app and added the dependencies to my module, where i wanted it to work but i dont know how to implement it even tho I tried. I tried to drop the ''Multiple File'' on a container after adding the dependencies but it requests fields that i dont know how to fill and what they're, because prolly there's some ''programming'' knowledge that I don't know so I can't do this.
Hello Carolina,
Have you looked at how MultiFileUpload_Demo (which comes with it) is setup? Basically:
Regarding the fields:
Substr(GetOwnerURLPath(),0,Index(GetOwnerURLPath(),GetPersonalAreaName())+Length(GetPersonalAreaName()))+"/MultipleFileUpload/Upload"+GetPageExtension()
"zip,png,pptx"
Does that help? Is there something specific I can answer?
How do I do the same for files like JPEG and JPG because I'm unable to upload them in the above process, Also how would I add an error message when a wrong file type is uploaded?
Yes, this helped a lot
I was able to implement it and make it work. Thanks! I didn't notice there's was a demo!
But now i've got this doubt:
How can i make the ''Upload Cache'' table to display only files that were uploaded inside a certain ''knowledge content'', like how can i associate the uploadcache id with the ''post id'' ?
Usually I make it happen on the table filters but this time i cant even get the proper ''UploadCache ID''. Everytime i upload something, it assumes the same ID as before
Hey Carolina,
That is where the SessionId property comes in. You can set it to something like "Post" + PostId (assuming PostId is a variable on your screen) and then put a filter on the UploadCache aggregate that uses the SessionId.
Also, something to be aware of, the UploadCache is only a temporary storage location. There is a timer in the MultipleFileUpload component that will clear files that are older than 20 minutes. So, in your On Notify, you can use an aggregate with a filter against SessionId and then save the file to somewhere more permanent (e.g. your own table, Amazon S3, Azure Storage, etc.)
Hi! So, I'm trying to do what you recommended but when i set de session id to ''Something'' + PostID (input parameter) and the upload a file it does not recognize the post id :(
So here is what I did in your application:
Can you tell me what you are doing and where it goes wrong?
hi, i created a clone of MultipleFileUpload because we added some custom logic to it. But now the Add Button is not showing. what is the correct value of FileProcessURL ? I tried with both MultipleFileUpload and the new cloned module name CloneOfMultipleFileUpload
MultipleFileUpload and the new cloned module name CloneOfMultipleFileUpload
MultipleFileUpload
but nothing worked