| Topic | Presenter | Summary | Duration |
| --------------------------------------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------- |
| Saving an Uploaded Image During Registration to the User Record | James G. | This video is from an office hours session and covers the topic "Saving an Uploaded Image During Registration to the User Record". | 21:07 |00:00:07.720 --> 00:00:09.816 OK, so if there are images in that00:00:09.816 --> 00:00:12.208 then it will pop it onto the objects00:00:12.208 --> 00:00:14.068 and then the object should send00:00:14.068 --> 00:00:16.154 it over the wire to the server.00:00:16.160 --> 00:00:20.669 Miller that should solve.00:00:20.670 --> 00:00:23.390 That thing there. Being dumb.00:00:27.320 --> 00:00:28.700 Long time on your box.00:01:54.600 --> 00:01:55.568 Well, that's not great.00:02:01.600 --> 00:02:03.110 Hey, what does that mean?00:02:09.790 --> 00:02:11.470 Somethings not good about the00:02:11.470 --> 00:02:13.390 data that you're logged in as.00:02:13.390 --> 00:02:14.394 Like you're logged in,00:02:14.394 --> 00:02:16.180 but the user that you're logged into,00:02:16.180 --> 00:02:17.710 it does not have an account.00:02:20.470 --> 00:02:22.860 And therefore it's throwing this00:02:22.860 --> 00:02:24.772 because something is weird.00:02:24.780 --> 00:02:28.422 And then your cart. Is dying.00:02:28.422 --> 00:02:29.926 For the same reason.00:02:43.020 --> 00:02:43.630 Yep.00:03:02.710 --> 00:03:04.830 So for the moment.00:03:06.850 --> 00:03:10.929 Here, here. With a cookie.00:03:24.280 --> 00:03:27.948 And I mean like log out manually.00:03:27.950 --> 00:03:29.278 Including the cities that00:03:29.278 --> 00:03:30.900 are refresh the page. Hey.00:03:35.820 --> 00:03:37.728 Go ask login.00:03:54.090 --> 00:03:56.478 Set to meet with people in.00:04:02.990 --> 00:04:04.100 The four three is fine.00:04:08.230 --> 00:04:09.154 You really shouldn't be00:04:09.154 --> 00:04:10.309 checking for that unless it's00:04:10.309 --> 00:04:12.540 actually got their role, but.00:04:12.540 --> 00:04:15.731 Fire up. But you're logged00:04:15.731 --> 00:04:17.093 into an account that has a.00:04:17.100 --> 00:04:18.240 You're logged into a user00:04:18.240 --> 00:04:19.380 actually has an account now.00:04:21.500 --> 00:04:22.590 However, what we were trying00:04:22.590 --> 00:04:23.680 to do is check registration,00:04:23.680 --> 00:04:24.988 so I'm gonna log back out.00:04:27.350 --> 00:04:28.376 Do you think there good there?00:04:31.190 --> 00:04:35.246 And we want to go to.00:04:35.250 --> 00:04:36.120 We're just here for one.00:04:45.500 --> 00:04:46.040 Put them in it.00:04:55.610 --> 00:04:56.740 Ah.00:05:00.370 --> 00:05:03.415 Either wanted to save yet you know.00:05:03.420 --> 00:05:06.465 Oh yeah, maybe since I I don't.00:05:06.470 --> 00:05:10.369 I don't think they watch it yet.00:05:10.370 --> 00:05:13.219 When I took that out of there.00:05:13.220 --> 00:05:15.670 That's OK, I just need to save in an HTML00:05:15.735 --> 00:05:17.947 file so that it shows the difference.00:05:17.950 --> 00:05:19.590 Don't get him all right.00:05:19.590 --> 00:05:21.846 Oh, OK. I didn't know that.00:05:24.040 --> 00:05:25.488 OK, the watch is so that if you00:05:25.488 --> 00:05:27.197 say if you say the TypeScript file00:05:27.197 --> 00:05:28.834 you'll get it will upgrade all00:05:28.834 --> 00:05:30.309 the TypeScript that's been saved.00:05:30.310 --> 00:05:31.510 You save an email file,00:05:31.510 --> 00:05:33.428 say they left it all these travels00:05:33.428 --> 00:05:35.510 and saved for the store front side.00:05:35.510 --> 00:05:37.342 You'll do the same thing on the admin00:05:37.342 --> 00:05:39.384 side if you do one of the icons files.00:05:39.390 --> 00:05:41.310 Oh OK. Cool.00:05:44.480 --> 00:05:47.988 And there OK here.00:05:53.000 --> 00:05:54.410 That should have moved it.00:06:00.180 --> 00:06:01.556 But since we took it off that spot.00:06:05.190 --> 00:06:06.495 Yeah, I would say that's00:06:06.495 --> 00:06:07.539 probably fine like that.00:06:10.940 --> 00:06:13.070 And this thing is here.00:06:13.070 --> 00:06:14.750 And I don't know why it looks like00:06:14.750 --> 00:06:16.420 that should have the background and00:06:16.420 --> 00:06:19.790 everything like that kinda control, but.00:06:19.790 --> 00:06:22.630 Wherever we choose a file.00:06:22.630 --> 00:06:26.115 Ah, what were you normally00:06:26.115 --> 00:06:28.206 sending cancel yeah.00:06:28.210 --> 00:06:29.720 Listen cats, cats is fine.00:06:32.200 --> 00:06:34.450 Cannot read property images of undefined.00:07:01.270 --> 00:07:04.392 Will you zoom this out a notch00:07:04.392 --> 00:07:06.750 by pressing control minus? Yeah.00:07:10.580 --> 00:07:12.500 Yeah, it's a little better. Here we go.00:07:15.380 --> 00:07:20.350 Again. Nothing you stacks up again.00:07:20.350 --> 00:07:26.130 There you go. No. I said stack. Thank you.00:07:34.270 --> 00:07:37.220 Passion is always the master.00:07:37.220 --> 00:07:41.153 No, if I inspect and go up a smidge.00:07:44.240 --> 00:07:47.446 Oh, I didn't, uh, get past that.00:07:49.560 --> 00:07:50.888 To the body object.00:07:55.470 --> 00:08:00.308 Skip. Cascadia Class third party00:08:04.410 --> 00:08:04.730 bye.00:08:10.680 --> 00:08:11.020 It's.00:08:18.640 --> 00:08:19.696 OK, so this is like the00:08:19.696 --> 00:08:20.400 nearest thing they want.00:08:23.720 --> 00:08:26.430 Break that. Save insane.00:08:43.120 --> 00:08:45.648 And the object type that is really just.00:09:04.470 --> 00:09:07.490 Double happy. Pass it through so we00:09:07.490 --> 00:09:08.953 should have our refresh one more time00:09:08.953 --> 00:09:10.569 and then upload the image and I believe00:09:10.619 --> 00:09:12.145 it will actually apply to the object.00:09:12.150 --> 00:09:13.942 OK, and then we can go through registration00:09:13.942 --> 00:09:15.924 and see if it gets through the rest of it.00:09:38.030 --> 00:09:39.158 Medicare for cancer.00:09:47.280 --> 00:09:48.088 I will do that.00:09:50.750 --> 00:09:51.140 Nothing.00:10:20.940 --> 00:10:21.680 Circles on.00:10:25.850 --> 00:10:26.560 Cat skin.00:10:28.730 --> 00:10:35.053 No errors. Pet supply the jaysaun Yep,00:10:35.053 --> 00:10:40.030 there's the upload ID and it's an image user.00:10:40.030 --> 00:10:41.386 And there's the path on the00:10:41.386 --> 00:10:42.470 box where it's actually at,00:10:42.470 --> 00:10:43.989 although I need to make that and00:10:43.989 --> 00:10:45.360 not come back over the wire.00:10:47.610 --> 00:10:49.956 Uh, OK. So then let's fill00:10:49.956 --> 00:10:51.910 in some junk here, John.00:10:55.550 --> 00:10:56.330 Please miss.00:10:59.800 --> 00:11:02.176 Where to give her a ginger?00:11:02.180 --> 00:11:05.788 I prefer not to say. Uh, OK.00:11:05.788 --> 00:11:08.258 And then we'll go 1985.00:11:12.250 --> 00:11:15.100 It's that fast. Spin it.00:11:17.380 --> 00:11:22.900 Uhm? Shut up you. I put my finger by.00:11:26.620 --> 00:11:31.518 PA. Home type work but.00:11:34.120 --> 00:11:35.608 That's yeah, that's why we don't00:11:35.608 --> 00:11:36.857 name these, because they don't00:11:36.857 --> 00:11:38.600 actually go in that order like that.00:11:41.770 --> 00:11:47.020 Museum 97UP Z M9731 exclamation point AA.00:11:49.260 --> 00:11:50.470 If I make that visible,00:11:50.470 --> 00:11:53.450 that's the best way. OK.00:11:53.450 --> 00:11:55.400 And meets all partners, uh?00:11:57.890 --> 00:12:03.948 Yes. No. Need to address book?00:12:03.950 --> 00:12:06.990 Add a billing address.00:12:06.990 --> 00:12:09.700 People that. This worker00:12:13.080 --> 00:12:14.628 most current version, wherever it is.00:12:19.990 --> 00:12:25.510 What is CXC? Yeah. And then.00:12:32.010 --> 00:12:37.330 Period, it's not junk out away. OK, uh.00:12:37.330 --> 00:12:40.190 I don't care about that boy. Uhm?00:12:47.470 --> 00:12:51.768 Up often. It says 717.00:12:53.940 --> 00:12:54.660 Address.00:12:57.920 --> 00:13:00.433 We normally have the country above the00:13:00.433 --> 00:13:02.876 the other parts because it changes00:13:02.876 --> 00:13:05.036 what's in their regions dropdown.00:13:05.040 --> 00:13:08.000 And changing it after the fact makes it.00:13:08.000 --> 00:13:11.400 Hot it's it's a less good user experience.00:13:14.950 --> 00:13:18.422 Uh, let's just say the last office00:13:18.422 --> 00:13:21.300 checks on every one of these.00:13:21.300 --> 00:13:23.024 Which makes this sound00:13:23.024 --> 00:13:25.400 like a freak measure. Uhm?00:13:30.830 --> 00:13:35.750 Did you do? All this questionnaire ****.00:13:35.750 --> 00:13:39.800 Oh God, so many questions. Subway questions?00:13:44.140 --> 00:13:45.812 This needs to have a link to terms00:13:45.812 --> 00:13:47.470 of use separately from the button00:13:47.470 --> 00:13:49.570 click so that people could have a00:13:49.570 --> 00:13:51.190 thing that opens in another window.00:13:51.190 --> 00:13:53.690 The ticket in the terms. Miller00:13:56.980 --> 00:13:57.571 OK, that's correct.00:13:57.571 --> 00:13:58.950 It tries to log you in first,00:13:58.950 --> 00:14:00.342 and if it's if you can't log you00:14:00.342 --> 00:14:01.909 in and then it goes in registers.00:14:10.330 --> 00:14:11.800 We create film.00:14:18.610 --> 00:14:22.920 Much. What? K.00:14:32.930 --> 00:14:34.988 This in English.00:14:39.950 --> 00:14:41.418 Account contacts. Oh OK,00:14:41.418 --> 00:14:43.620 so I tried to make the.00:14:45.720 --> 00:14:46.370 Kill.00:14:51.310 --> 00:14:52.158 Yeah, what is it?00:14:54.210 --> 00:14:57.490 Looks like it had a problem making that.00:14:57.490 --> 00:15:00.830 One of your address book records. No.00:15:10.250 --> 00:15:11.330 Man, this isn't reading the00:15:11.330 --> 00:15:12.769 date of birth that we put in.00:15:17.090 --> 00:15:21.340 That does lamp we play in.00:15:21.340 --> 00:15:24.990 Right? And your main contact00:15:24.990 --> 00:15:26.915 information shouldn't be on this.00:15:26.920 --> 00:15:30.972 This should not be on here. OK.00:15:30.972 --> 00:15:33.864 Because the contact information is also00:15:33.864 --> 00:15:37.110 handled through the address book. Oh, OK.00:15:44.390 --> 00:15:47.220 So it's just that doubts. Uhm?00:15:51.310 --> 00:15:52.813 This isn't resetting,00:15:52.813 --> 00:15:55.318 this is just changing password.00:15:55.320 --> 00:15:57.792 You really need to get the00:15:57.792 --> 00:15:59.030 translations loaded, yeah?00:16:03.820 --> 00:16:04.429 Get any record.00:16:04.429 --> 00:16:06.150 Yes, I got that one uh so yeah,00:16:06.150 --> 00:16:07.416 it didn't make the shipping one,00:16:07.420 --> 00:16:09.172 but it made the billing one so you'll00:16:09.172 --> 00:16:11.029 have to add a second one to do that.00:16:11.030 --> 00:16:12.296 When they did that one happy.00:16:12.300 --> 00:16:15.610 But that got in there. The.00:16:20.110 --> 00:16:21.926 It's called account settings,00:16:21.926 --> 00:16:25.090 but it's actually the my profile page.00:16:25.090 --> 00:16:27.482 And then I don't see anywhere on here00:16:27.482 --> 00:16:29.610 where you even display the image.00:16:29.610 --> 00:16:33.327 No, I haven't, uh, worked on that part yet.00:16:33.330 --> 00:16:37.803 OK, so I'm trying to get it to upload.00:16:37.810 --> 00:16:41.387 Current user. Has an image on it.00:16:41.390 --> 00:16:43.874 Oh cool, all right.00:16:43.874 --> 00:16:45.446 It's cats. Awesome.00:16:45.446 --> 00:16:48.054 So in theory the upload of it worked00:16:48.054 --> 00:16:50.717 and is a sign out of the user journey.00:16:50.720 --> 00:16:53.786 Getting the other side of it.00:16:53.790 --> 00:16:59.100 Miller so the sum total was.00:16:59.100 --> 00:17:01.025 That's taking the image upload00:17:01.025 --> 00:17:03.490 control out of the content editor,00:17:03.490 --> 00:17:06.674 which is used in a bunch of places.00:17:06.680 --> 00:17:09.848 Putting it into the.00:17:09.850 --> 00:17:11.806 Body of the Patient info pane.00:17:11.810 --> 00:17:14.410 We just put it underneath the contact widget.00:17:14.410 --> 00:17:17.344 We made sure that it was an image user,00:17:17.350 --> 00:17:20.311 not image account, and then I bound00:17:20.311 --> 00:17:23.700 it onto an object that is on the.00:17:23.700 --> 00:17:27.249 The user serve the user body service,00:17:27.250 --> 00:17:27.756 whatever.00:17:27.756 --> 00:17:29.274 Sorry, the registration,00:17:29.274 --> 00:17:30.286 patient info,00:17:30.290 --> 00:17:33.326 Step body Service that is the.00:17:37.180 --> 00:17:39.244 The A record with images and that it's00:17:39.244 --> 00:17:41.062 basically just an object that has images00:17:41.062 --> 00:17:42.887 in it that would actually it would00:17:42.887 --> 00:17:44.742 normally be like the user record itself,00:17:44.750 --> 00:17:46.778 but because the registration process and00:17:46.778 --> 00:17:49.944 it has that that stuff like broken up into00:17:49.944 --> 00:17:52.408 separate pieces before sending it off to the.00:17:52.410 --> 00:17:54.130 Final effort, it had to be its own00:17:54.130 --> 00:17:55.959 object so that the image upload control00:17:55.959 --> 00:17:57.807 had said that the correct type of00:17:57.807 --> 00:17:59.382 object bound to they just had the00:17:59.382 --> 00:18:01.770 bare metal data of what it needed.00:18:01.770 --> 00:18:06.160 Uh, so puts that on there and then in the.00:18:06.160 --> 00:18:07.810 Submission of the you know,00:18:07.810 --> 00:18:09.114 go create my user.00:18:09.114 --> 00:18:11.070 We if there's images data then00:18:11.139 --> 00:18:13.065 we append it onto the object.00:18:13.070 --> 00:18:14.984 That of what's that thing which00:18:14.984 --> 00:18:17.020 is which inherits a user model.00:18:17.020 --> 00:18:19.316 So like registered customer all the username,00:18:19.320 --> 00:18:19.648 password,00:18:19.648 --> 00:18:21.616 all that stuff goes on there.00:18:23.640 --> 00:18:25.551 The images get appended on that object00:18:25.551 --> 00:18:27.961 and then we saw in the browser after00:18:27.961 --> 00:18:29.828 submission that the data coming back00:18:29.828 --> 00:18:31.781 over the wire does include that image00:18:31.781 --> 00:18:33.420 on there so that Galloway through00:18:33.420 --> 00:18:35.654 and now you just need to add like00:18:35.654 --> 00:18:37.586 an image display view on this thing00:18:37.586 --> 00:18:39.299 which the default template has.00:18:39.300 --> 00:18:41.356 So you'd be able to copy and paste00:18:41.356 --> 00:18:43.875 it back into this thing to make it00:18:43.875 --> 00:18:45.968 display and then secondary to all that.00:18:45.970 --> 00:18:47.420 There's at least one account,00:18:47.420 --> 00:18:49.450 whatever it was logged in as before,00:18:49.450 --> 00:18:50.260 that it's not.00:18:50.260 --> 00:18:52.640 There's one user not assigned to an account,00:18:52.640 --> 00:18:54.250 so that instead looked at.00:18:54.250 --> 00:18:56.786 Data and you get a lot of missing00:18:56.786 --> 00:18:58.820 translations that need to get pulled in00:18:58.820 --> 00:19:01.278 and then like date of birth and gender.00:19:01.280 --> 00:19:02.654 Didn't get pulled in and I'm00:19:02.654 --> 00:19:03.883 guessing age would be automatic00:19:03.883 --> 00:19:05.724 based upon filling in date of birth,00:19:05.730 --> 00:19:07.482 so this should be like readonly00:19:07.482 --> 00:19:09.820 and or like a label only not a.00:19:09.820 --> 00:19:10.460 Barski, Dylan.00:19:10.460 --> 00:19:12.060 And then figuring out what's00:19:12.060 --> 00:19:14.043 going on with that phone number00:19:14.043 --> 00:19:15.653 thing like where it's going.00:19:15.660 --> 00:19:17.196 'cause if you're gonna show all00:19:17.196 --> 00:19:18.600 three pro phone number fields,00:19:18.600 --> 00:19:20.484 that toggle is kind of useless00:19:20.484 --> 00:19:22.009 'cause you've already filled in00:19:22.009 --> 00:19:23.665 the one that has the name on it.00:19:23.670 --> 00:19:25.010 But also, like our records,00:19:25.010 --> 00:19:27.044 don't work that way where you00:19:27.044 --> 00:19:29.028 generally you don't have a blank00:19:29.028 --> 00:19:31.284 phone one and then a valid phone too.00:19:31.290 --> 00:19:31.766 Uhm?00:19:31.766 --> 00:19:33.670 In a contact record,00:19:33.670 --> 00:19:36.064 we just say Phone 123 and it00:19:36.064 --> 00:19:37.801 doesn't really matter whether it's00:19:37.801 --> 00:19:40.034 a work phone or a cell phone.00:19:40.040 --> 00:19:40.447 OK,00:19:40.447 --> 00:19:43.703 on stuff it's you know it's the contact00:19:43.703 --> 00:19:46.639 number you gave for them to call you.00:19:46.640 --> 00:19:48.278 And and I don't know about00:19:48.278 --> 00:19:50.159 a lot of people these days.00:19:50.160 --> 00:19:50.440 Honestly,00:19:50.440 --> 00:19:52.960 I I wouldn't get out any fun ever other00:19:53.022 --> 00:19:55.136 than my one like cell number anymore.00:19:55.140 --> 00:19:56.898 I wouldn't give out like a00:19:56.898 --> 00:19:58.070 separate work number anymore.00:19:58.070 --> 00:19:58.946 It doesn't matter.00:19:58.946 --> 00:20:00.114 Yeah, if I did,00:20:00.120 --> 00:20:01.989 it would be like the main office00:20:01.989 --> 00:20:03.340 like mainline or whatever.00:20:03.340 --> 00:20:05.572 It's not like it would go to an00:20:05.572 --> 00:20:07.148 extension or anything to me.00:20:09.610 --> 00:20:11.916 And 'cause if it was, you know important00:20:11.916 --> 00:20:13.968 whatever they could leave a voicemail.00:20:13.970 --> 00:20:15.900 On myself and I can get back to them later.00:20:19.630 --> 00:20:21.510 I mean that may not be the case00:20:21.510 --> 00:20:22.703 for everyone, but that's that.00:20:22.703 --> 00:20:24.149 Seems like a much more common00:20:24.149 --> 00:20:25.736 thing now than it would have been.00:20:25.740 --> 00:20:27.390 You know, a few years ago, yeah.00:20:30.700 --> 00:20:31.810 Select files.00:20:34.190 --> 00:20:35.234 Is this a? Is this supposed00:20:35.234 --> 00:20:36.340 to be the image uploader?00:20:42.010 --> 00:20:43.320 Yeah, that's an image uploader.00:20:47.220 --> 00:20:48.455 It's being squished in at00:20:48.455 --> 00:20:50.080 the top of the page there.00:20:50.080 --> 00:20:53.230 It's got really weird formatting on it.00:20:53.230 --> 00:20:54.580 They go OK, so that's it.