There should be some sort of API that Yetishare has.. where users can somehow automatically upload files or be able to do something like (general example)
1. contact yetishare based site
2. send the api credentials (access key generated in users account under api section)
3. Provide the API with a http / remote URL link to a file and tell the API to download this file onto the users account
4. Have the api send back the URL for the file once its been put on the users account
This would be handy for me. If anyone has any ideas on how I can make something like this in the mean time, let me know
I guess i could maybe for now make a bash shell script that would:
1. Throw the file on a specified file server to files/[folder hash]/[file hash]
2. Then update the mysql database and insert into file table the id, filename, folder hash / file hash, etc..the shorturl, etc.. of course my shell script would have to check to make sure its not inserting an id, shorturl, filehash etc that isnt already in the file table
the thing is, in the mean time, i would appreciate it so much if anyone here was knowledgeaele enough to point me in the code where it generates the following
- the shortUrl
- the localFilePath
- the deleteHash
- the fileHash
Like if I can find out where in the php code it generates this, then I can mimick this same beahvior in my bash shell script OR i can have my friend who knows some php help me with that..
But I still recommend for yetishare to create a API, it would be handy , it may not be great for file uploads that you have to upload from your browser, but would be excellent for remote URL downloads / sending links to the yetishare based site to wget/download..
1. contact yetishare based site
2. send the api credentials (access key generated in users account under api section)
3. Provide the API with a http / remote URL link to a file and tell the API to download this file onto the users account
4. Have the api send back the URL for the file once its been put on the users account
This would be handy for me. If anyone has any ideas on how I can make something like this in the mean time, let me know
I guess i could maybe for now make a bash shell script that would:
1. Throw the file on a specified file server to files/[folder hash]/[file hash]
2. Then update the mysql database and insert into file table the id, filename, folder hash / file hash, etc..the shorturl, etc.. of course my shell script would have to check to make sure its not inserting an id, shorturl, filehash etc that isnt already in the file table
the thing is, in the mean time, i would appreciate it so much if anyone here was knowledgeaele enough to point me in the code where it generates the following
- the shortUrl
- the localFilePath
- the deleteHash
- the fileHash
Like if I can find out where in the php code it generates this, then I can mimick this same beahvior in my bash shell script OR i can have my friend who knows some php help me with that..
But I still recommend for yetishare to create a API, it would be handy , it may not be great for file uploads that you have to upload from your browser, but would be excellent for remote URL downloads / sending links to the yetishare based site to wget/download..