fix: ishare import issues

This commit is contained in:
diced
2025-02-21 15:18:57 -08:00
parent eae5d755f6
commit 1d92599788
2 changed files with 5 additions and 14 deletions

View File

@@ -33,7 +33,7 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
@@ -52,7 +52,6 @@ jobs:
${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-${{ matrix.arch }}
${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-${{ steps.sha.outputs.short_sha }}-${{ matrix.arch }}
amend-builds:
runs-on: ubuntu-24.04
needs: push
@@ -103,7 +102,6 @@ jobs:
--amend ${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-amd64 \
--amend ${{ secrets.DOCKERHUB_USERNAME }}/zipline:${{ steps.version.outputs.zipline_version }}-arm64
- name: push manifests
run: |
docker manifest push ghcr.io/diced/zipline:${{ steps.version.outputs.zipline_version }}

View File

@@ -8,12 +8,11 @@ export function ishare(token: string, type: 'file' | 'url', options: GeneratorOp
}
const config = {
name: `Zipline - ${window.location.origin} - ${type === 'file' ? 'File' : 'URL'}`,
requestURL: `${window.location.origin}/api/upload`,
requesturl: `${window.location.origin}/api/upload`,
name: `Zipline - ${window.location.origin} - File`,
headers: {},
fileFormName: 'file',
requestBodyType: 'multipartFormData',
responseURL: `{{files[0].url}}`,
fileformname: 'file',
responseurl: '{{files[0].url}}',
};
const toAddHeaders: UploadHeaders = {
@@ -44,12 +43,6 @@ export function ishare(token: string, type: 'file' | 'url', options: GeneratorOp
delete toAddHeaders['x-zipline-max-views'];
}
// if (options.noJson === true) {
// // unsupported in ishare
// } else {
// delete toAddHeaders['x-zipline-no-json'];
// }
if (options.addOriginalName === true && type === 'file') {
toAddHeaders['x-zipline-original-name'] = 'true';
} else {