transloadit / transloaditkit Goto Github PK
View Code? Open in Web Editor NEWAn iOS and macOS integration for Transloadit's file uploading and encoding service
Home Page: https://transloadit.com/docs/#sdks
An iOS and macOS integration for Transloadit's file uploading and encoding service
Home Page: https://transloadit.com/docs/#sdks
When contacting the Transloadit
add Transloadit-Client
version header
eg:
Transloadit-Client: TransloaditKit:0.9.1
All SDKs should include the Transloadit-Client
header for every Transloadit-related request they are sending (tus excluded). This is helpful for our support, so we can easily identify which SDKs in which version they are using.
For example, here is how the Java SDK does it: https://github.com/transloadit/java-sdk/blob/4a631daa808e4ebf58ea9e30855cde1c5ddd555c/src/main/java/com/transloadit/sdk/Request.java#L74
The complete header with value should look like this: https://github.com/transloadit/java-sdk/blob/4a631daa808e4ebf58ea9e30855cde1c5ddd555c/src/test/java/com/transloadit/sdk/RequestTest.java#L68
There is a documentation needed on how to use templates with the SDK.
Goals before release of TransloaditKit 1.1.0
Changes to project
Arcane
dependencySupport changes
Swift
ExampleObjC
ExampleHey @MMasterson, as mentioned in slack, this is here mostly so we have a thread to follow progress and be able to see it in the project dashboard.
Todo
https://api2-anurati.transloadit.com/resumable/files/
. So if you do a> POST api2.transloadit.com/assemblies
assembly_ssl_url
in the resulting JSON body like:https://anurati.transloadit.com/assemblies/5bb26c001ad711e7a3cb9b5d337d8300
. This contains the websocket_url
and the tusd_url
. You'll use the tusd_endpoint
to post files to.assembly_url
as meta data to tus, vs the id as mentioned in the latest wiki over at https://github.com/tus/tusd/wiki/Uploading-to-Transloadit-using-tuswait
for the encoding/storing (vs fire & forget right after the upload concludes). Here are the status codes: https://transloadit.com/docs/api-docs/#27-response-codes## Intro
, ## Install
## Usage
, ## Example
(see https://github.com/transloadit/node-sdk#intro). @ifedapoolarewaju might be able answer questions / provide guidance here.transloadit
for podname, keep TransloaditKit as repo and project name, deprecate all other projects by stating that, and linking to the newIdeas for 2.0:
after tus/TUSKit#95 was merged into TUSKit it introduced a bug where files uploaded with transloadit have duplicated filename extensions like filename.jpgjpg
To fix this in Assembly.swift you have to replace withPathURL.lastPathComponent
with withPathURL.deletingPathExtension().lastPathComponent
since TUSUpload expects the id to be without extension and the extension is supplied separately.
public func addFile(withPathURL: URL) {
tusUpload = TUSUpload(withId: withPathURL.deletingPathExtension().lastPathComponent, andFilePathURL: withPathURL, andFileType: withPathURL.pathExtension)
}
We need a better set of examples on how to use the SDK, since we are using your paid service. Our iOS developers are not clear as to how to use the SDK for templates.
We are using templates for our video/image uploads.
Trying to utilize this SDK with cocoapods as:
pod 'TransloaditKit', git: 'https://github.com/transloadit/TransloaditKit'
and trying to build a sample app with it causes the error:
Include of non-modular header inside framework module TransloaditKit/NSString+Utils.h (line 10)
Just to confirm, will this be the supported SDK going forward? What is the sunset period for the older SDK?
Using the SDK how do I add custom fields (like userid)?
All the documentation on the site uses Web App as an example but I'm not sure how to set them on iOS using Swift.
As reported by @pushkardeshmukh1992 (for reference: https://app.intercom.io/a/apps/qiqpfgjg/inbox/inbox/all/conversations/15745376289) TransloaditKit does not build with the following error. Could you check it out @MMasterson?
Any more details you could add to this thread @pushkardeshmukh1992 are much appreciated ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.