Using a URL to fetch a design from anywhere. #238
Replies: 13 comments 8 replies
-
Are you still working on the "try it here" link? Currently does not work for me - takes me to a "site cannot be reached" page |
Beta Was this translation helpful? Give feedback.
-
OK. I've got a crazy idea that could make it work. If the URL you provide is not suffixed with ".osdpi" or ".zip" then it will attempt to fetch it as HTML and search that text for a link with one of those suffixes. This would not allow for multiple uploads on the same page. Maybe another query parameter specifies the name? That could work. The URLs will look terrible but no one should be reading (much less typing) URLs. You could always use a URL shortener. So the URL might look like:
Then we could provide some shortcuts so it could become:
That level of indirection through the page maybe is sufficient to allow updates. I'll nap on that. |
Beta Was this translation helpful? Give feedback.
-
I am trying to follow these steps and have not been successful. This is the design: This is the link: https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672084/English_Mandarin_grid.osdpi.zip This is the link prepended: https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672074/English_Mandarin_grid.osdpi.zip This is what I get when I copy and paste into a new tab: |
Beta Was this translation helpful? Give feedback.
-
It should be English_Mandarin_grid.osdpi or English_Mandarin_grid.zip but
not English_Mandarin_grid.osdpi.zip as you have it. The .osdpi file is
already a zip file. When you zip it, you then have a zip file inside a zip
file and that can't work.
Simply rename the original file from English_Mandarin_grid.osdpi
to English_Mandarin_grid.zip so that GitHub will let you attach it.
…On Wed, Mar 20, 2024 at 4:14 PM Andrea Etkie ***@***.***> wrote:
I am trying to follow these steps and have not been successful.
This is the design:
English_Mandarin_grid.osdpi.zip
<https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672084/English_Mandarin_grid.osdpi.zip>
This is the link:
https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672084/English_Mandarin_grid.osdpi.zip
This is the link prepended:
https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672074/English_Mandarin_grid.osdpi.zip
This is what I get when I copy and paste into a new tab:
Screenshot.2024-03-20.at.4.13.45.PM.png (view on web)
<https://github.com/UNC-Project-Open-AAC/OS-DPI/assets/113473933/cd3c0a12-629a-4a1d-afcd-d12e2fd2f754>
—
Reply to this email directly, view it on GitHub
<#238 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQK7FFDNEFTVDI24FNK5TYZHUZNAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNJXG4YTE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
You changed the name but you didn't unzip it. It is still a zip file
containing the .osdpi file.
Go back to the original design file. The .osdpi you exported from the app.
Change the suffix to ".zip" and then use that.
…On Wed, Mar 20, 2024 at 4:44 PM Andrea Etkie ***@***.***> wrote:
Thanks @gbishop <https://github.com/gbishop>. I fixed the extension. Now
the link prepended is
https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14672332/English_Mandarin_grid.zip
But I am still getting the same error message.
—
Reply to this email directly, view it on GitHub
<#238 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQK7CXLUG24JKA2OEZCILYZHYJPAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNJXHE2TC>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I am still getting the same error message. When I am in the design, I export it. It saves to my desktop. I change the extension to .zip. Is that correct? |
Beta Was this translation helpful? Give feedback.
-
Correct. Then attach that to a comment (or whatever) on GitHub. Get that
URL and it should work.
…On Thu, Mar 21, 2024 at 10:58 AM Andrea Etkie ***@***.***> wrote:
I am still getting the same error message. When I am in the design, I
export it. It saves to my desktop. I change the extension to .zip. Is that
correct?
—
Reply to this email directly, view it on GitHub
<#238 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQK7GXDJMXFTSLKRIPAJTYZLYPXAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNRXGE4TM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Trying this again because I am still getting the same error message. This is the exported design: This is the link: https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip This is the prepended link: https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip |
Beta Was this translation helpful? Give feedback.
-
Looks like you have done everything correctly. There must be a bug. I'll
look into it.
…On Thu, Mar 21, 2024 at 11:31 AM Andrea Etkie ***@***.***> wrote:
Trying this again because I am still getting the same error message.
This is the exported design:
keyboard.zip
<https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697344/keyboard.zip>
This is the link:
https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
This is the prepended link:
https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
—
Reply to this email directly, view it on GitHub
<#238 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQK7GEUKC6WK2JQL5Q6QDYZL4LRAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNRXGY2DO>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
How did you upload that file?
…On Thu, Mar 21, 2024 at 11:43 AM Gary Bishop ***@***.***> wrote:
Looks like you have done everything correctly. There must be a bug. I'll
look into it.
On Thu, Mar 21, 2024 at 11:31 AM Andrea Etkie ***@***.***>
wrote:
> Trying this again because I am still getting the same error message.
>
> This is the exported design:
> keyboard.zip
> <https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697344/keyboard.zip>
>
> This is the link:
> https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
>
> This is the prepended link:
> https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
>
> —
> Reply to this email directly, view it on GitHub
> <#238 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AABQK7GEUKC6WK2JQL5Q6QDYZL4LRAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNRXGY2DO>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***
> .com>
>
|
Beta Was this translation helpful? Give feedback.
-
I opened a discussion post and dragged the design from my desktop into the box |
Beta Was this translation helpful? Give feedback.
-
OK. I see the issue. The proxy has died again... Or more likely it didn't
restart when the machine rebooted.
I just restarted it. That link should work now.
…On Thu, Mar 21, 2024 at 11:47 AM Gary Bishop ***@***.***> wrote:
How did you upload that file?
On Thu, Mar 21, 2024 at 11:43 AM Gary Bishop ***@***.***> wrote:
> Looks like you have done everything correctly. There must be a bug. I'll
> look into it.
>
> On Thu, Mar 21, 2024 at 11:31 AM Andrea Etkie ***@***.***>
> wrote:
>
>> Trying this again because I am still getting the same error message.
>>
>> This is the exported design:
>> keyboard.zip
>> <https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697344/keyboard.zip>
>>
>> This is the link:
>> https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
>>
>> This is the prepended link:
>> https://unc-project-open-aac.github.io/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/files/14697348/keyboard.zip
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#238 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AABQK7GEUKC6WK2JQL5Q6QDYZL4LRAVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNRXGY2DO>
>> .
>> You are receiving this because you were mentioned.Message ID:
>> <UNC-Project-Open-AAC/OS-DPI/repo-discussions/238/comments/8867647@
>> github.com>
>>
>
|
Beta Was this translation helpful? Give feedback.
-
I'll figure out why the proxy goes away. Maybe I can come up with a better
error message as well. At least knowing the proxy wasn't working would help.
…On Thu, Mar 21, 2024 at 12:06 PM Andrea Etkie ***@***.***> wrote:
it works! thanks for troubleshooting with me
—
Reply to this email directly, view it on GitHub
<#238 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABQK7CBSBMS5CFX5GSAEG3YZMAQ7AVCNFSM6AAAAABBTOF5P6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DQNRYGEZDS>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
I'm working on code to make it possible to give someone a URL they can click to both fetch and display a design (like our demo links) except the link can point to anywhere publically accessible. As an extra feature I want to make it possible for you to update the design in place and give the user a button (or whatever) in the UI allowing them to update to the latest without using the designer interface.
I'll update this post later when it is working. The point of this page is to give me a place to plant a design for testing.
If there are multiple matches it takes the first one. I can swap to two links below to change which one get fetched.
test_design.zip
test_design.zip
I can include multiple designs in the same page by using the hash on the end of the URL as shown below.
another_test_design.zip
I've left the links visible below but they could be have text instead of the full URL
http://localhost:8080/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/discussions/238#test_design
Try the test_design
http://localhost:8080/OS-DPI/?fetch=https://github.com/UNC-Project-Open-AAC/OS-DPI/discussions/238#another_test_design
Try another design
Beta Was this translation helpful? Give feedback.
All reactions