Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Upload file

Questions related to using nuBuilder Forte.
Post Reply
GlenMcCabe
Posts: 114
Joined: Sun Sep 29, 2019 12:40 pm

Upload file

Unread post 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.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Upload file

Unread post by kev1n »

Hi,

This should help you get started:

https://github.com/smalos/nuBuilder4-Co ... le_subform
Last edited by kev1n on Fri Aug 21, 2020 1:33 pm, edited 1 time in total.
GlenMcCabe
Posts: 114
Joined: Sun Sep 29, 2019 12:40 pm

Re: Upload file

Unread post by GlenMcCabe »

Thanks Kevin

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

Glen
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Upload file

Unread post by kev1n »

Could you implement the upload function or do you still need assistance?
GlenMcCabe
Posts: 114
Joined: Sun Sep 29, 2019 12:40 pm

Re: Upload file

Unread post 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
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Upload file

Unread post 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
GlenMcCabe
Posts: 114
Joined: Sun Sep 29, 2019 12:40 pm

Re: Upload file

Unread post by GlenMcCabe »

Kevin



I don't have yours

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

Glen
Last edited by GlenMcCabe on Mon Aug 24, 2020 10:26 pm, edited 1 time in total.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Upload file

Unread post by kev1n »

Email sent.
GlenMcCabe
Posts: 114
Joined: Sun Sep 29, 2019 12:40 pm

Re: Upload file

Unread post by GlenMcCabe »

Many thanks to Kevin for his help on this.
Post Reply