Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Use the Newly Added Send URL #20

Open
pretenderlu opened this issue Jan 10, 2024 · 9 comments
Open

How to Use the Newly Added Send URL #20

pretenderlu opened this issue Jan 10, 2024 · 9 comments

Comments

@pretenderlu
Copy link

Try using the new version of the interface, it seems unable to generate a download url directly. But if I have to fill it out myself, what should I write?

@daniel-j
Copy link
Owner

The url field is to send urls to your ereader instead of typing it in manually. They appear as clickable links, similar to ebook download buttons. For example if you have the url to a pdf, drm free epub and just want to send the link instead of downloading and uploading.

@pretenderlu
Copy link
Author

The url field is to send urls to your ereader instead of typing it in manually. They appear as clickable links, similar to ebook download buttons. For example if you have the url to a pdf, drm free epub and just want to send the link instead of downloading and uploading.

Oh,Thanks.
But it always displays "No file or url selected"."It looks the same as before, so I haven't used this service for a long time."

@daniel-j
Copy link
Owner

You need to choose a file or url or both before clicking upload.

@pretenderlu
Copy link
Author

Yes, I selected a file, but in the end, it displayed "no file".

@pretenderlu
Copy link
Author

pretenderlu commented Jan 15, 2024

<-- GET / ::ffff:116.233.106.246 Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
--> GET / 200 3ms 5.25kb
<-- GET /style.css?o
--> GET /style.css?o 200 3ms 2.08kb
<-- GET /common.js
--> GET /common.js 200 3ms 1.04kb
<-- GET /favicon.ico
--> GET /favicon.ico 404 1ms -
<-- GET /status/FHZ3
--> GET /status/FHZ3 200 2ms 58b
<-- POST /generate There are currently 1 key(s) in use. Generating unique key... ::ffff:116.233.106.246 Mozilla/5.0 (Linux; U; Android 2.0; en-us;) AppleWebKit/538.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/538.1 (Kobo Touch 0386/4.38.21908) Generated key 5PAV, 1 attempt(s)
--> POST /generate 200 1ms 4b
<-- GET /status/5PAV
--> GET /status/5PAV 200 1ms 58b
<-- POST /upload Incoming file: { fieldname: 'file', originalname: '(Shang Yi Jiu Ban)Bai Nian Gu Du.epub', encoding: '7bit', mimetype: 'application/epub' } FileFilter: File is of an invalid type  { fieldname: 'file', originalname: '(Shang Yi Jiu Ban)Bai Nian Gu Du.epub', encoding: '7bit', mimetype: 'application/epub' }
--> GET /status/5PAV
--> GET /status/5PAV 200 1ms 58b { message: 'No file or url selected', success: false, key: '5PAV' }
--> POST /upload 302 859ms 79b
<-- GET / ::ffff:116.233.106.246 Mozilla/5.0

The error log is as shown above. I can't use it on PC with Edge and Chrome, but it works on mobile.

@daniel-j
Copy link
Owner

Looks like the error is "File is of an invalid type", but looking at the log I'm not sure why...

@pretenderlu
Copy link
Author

Using the same EPUB file, when using a mobile browser, the log shows: mimetype: 'application/epub+zip', when using a desktop, it shows as mimetype: 'application/epub'.

@daniel-j
Copy link
Owner

I have added application/epub too now, try again.

@pretenderlu
Copy link
Author

I'm sorry, but whether it's the web page you provided or the one I redeployed myself, the same error persists. I've given up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants