Skip to content

Commit

Permalink
on iOS, remove UI related to folder upload (not supported in iOS brow…
Browse files Browse the repository at this point in the history
…sers)
  • Loading branch information
sevenlayercookie committed Nov 21, 2024
1 parent 76e5c40 commit e7942fc
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions client/pages/upload/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -249,22 +249,8 @@ export default {
},
inputChanged(e) {
if (!e.target || !e.target.files) return
// Convert FileList to an Array
var _files = Array.from(e.target.files)
// Log MIME type and other file details
_files.forEach((file) => {
console.log(`File Name: ${file.name}`)
console.log(`File Type: ${file.type || 'HARunknown'}`) // Log MIME type (fallback if empty)
console.log(`File Size: ${file.size} bytes`)
if (!file.type && file.name.endsWith('.m4b')) {
console.log('Detected .m4b file: Assigning MIME type "audio/mp4"')
}
})
if (_files && _files.length) {
// Process the files as before
var itemResults = this.uploadHelpers.getItemsFromPicker(_files, this.selectedLibraryMediaType)
this.onItemsSelected(itemResults)
}
Expand Down

0 comments on commit e7942fc

Please sign in to comment.