Page 1 of 1

Upload file

Posted: Tue Jan 14, 2020 9:14 pm
by GlenMcCabe
I want to create a subform where I can select a file from users local machine - give that file a nique name and store original name and unique name in table. In the subform clicking on the unique name should display the file. (files can be document, pdf, html image etc.

Directions on how to start doing this would be greatly appreciated.

Many thanks.

Re: Upload file

Posted: Wed Jan 15, 2020 4:46 am
by kev1n
Hi,

This should help you get started:

https://github.com/smalos/nuBuilder4-Co ... le_subform

Re: Upload file

Posted: Wed Jan 15, 2020 9:26 am
by GlenMcCabe
Thanks Kevin

Just joined GitHub. Will get to look in more depth later.

Glen

Re: Upload file

Posted: Mon Apr 13, 2020 2:08 pm
by kev1n
Could you implement the upload function or do you still need assistance?

Re: Upload file

Posted: Fri Aug 21, 2020 1:13 pm
by GlenMcCabe
Kevin

The project was postponed due to covid. It has now been re-opened and I have tried your instructions. Nothing happens when I click on upload.

I have checked the the 5 objects and they appear to be as required. I have pressed upload button and nothing happened.

I have not modified any of the pieces of code and had hoped that I would get errors that would let me try to make changes. If there are errors I do not know where to look.

I have no experience of java or php and do have experience of SQL.

Any advice?

Glen

Re: Upload file

Posted: Fri Aug 21, 2020 1:49 pm
by kev1n
The error could be anywhere - ranging from a missing semicolon to an invalid path. The first things I'd do is take a look at the developer console (F12) for possible error outputs.
Then check the nuBuilder's Debug Result (CTRL+Shift+D) for any PHP errors.

If that doesn't help, you could upload a dump of your database here (zip it first) or here or send it to me via emai and I'll have a look at it.
Remove/replace any confidential data, if there are any.
Export instructions if you're not sure how to do it: https://www.inmotionhosting.com/support ... phpmyadmin

Re: Upload file

Posted: Fri Aug 21, 2020 4:53 pm
by GlenMcCabe
Kevin



I don't have yours

Can you drop me a quick email and I will return the database.

Glen

Re: Upload file

Posted: Fri Aug 21, 2020 5:14 pm
by kev1n
Email sent.

Re: Upload file

Posted: Tue Aug 25, 2020 7:21 am
by GlenMcCabe
Many thanks to Kevin for his help on this.